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