1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
Source: pytest-relaxed
Section: python
Priority: optional
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders:
Alexandre Detiste <tchet@debian.org>,
Build-Depends:
debhelper-compat (= 13),
dh-sequence-python3,
pybuild-plugin-pyproject,
python3-all,
python3-decorator,
python3-pytest,
python3-setuptools,
Standards-Version: 4.6.2.0
Rules-Requires-Root: no
Homepage: https://github.com/bitprophet/pytest-relaxed
Vcs-Git: https://salsa.debian.org/python-team/packages/pytest-relaxed.git
Vcs-Browser: https://salsa.debian.org/python-team/packages/pytest-relaxed
Testsuite: autopkgtest-pkg-pybuild
X-Style: black
Package: python3-pytest-relaxed
Architecture: all
Depends:
${misc:Depends},
${python3:Depends},
Description: provide relaxed test discovery for pytest
This is the spiritual successor to https://pypi.python.org/pypi/spec,
but is built for pytest instead of nosetests, and rethinks some
aspects of the design (such as increased ability to opt-in to various
behaviors.)
.
Has it ever felt strange to put tests in tests/,
then name the files test_foo.py, name the test classes TestFoo,
and finally name the test methods test_foo_bar?
Especially when almost all of the
code inside of tests/ is, well, tests?
.
This pytest plugin takes a page from the rest of Python, where you
don't have to explicitly note public module/class members, but only
need to hint as to which ones are private. By default, all files and
objects pytest is told to scan will be considered tests; to mark
something as not-a-test, simply prefix it with an underscore.
|