2.0.4: pytest is not able to find units
kloczek opened this issue · comments
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.15, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-json-logger-2.0.4
collected 0 items
========================================================================== no tests ran in 0.01s ===========================================================================
However
+ /usr/bin/pytest -ra tests/tests.py
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.15, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-json-logger-2.0.4
collected 16 items
tests/tests.py ................ [100%]
============================================================================ 16 passed in 0.03s ============================================================================
pytest automacically scans tests_*.py files so tests/tests.py should be renamed to fix this.
Resolved in Pull Request #165