madzak / python-json-logger

Json Formatter for the standard python logger
BSD 2-Clause "Simplified" License
1.7k stars 231 forks source link

2.0.4: pytest is not able to find units #159

Closed kloczek closed 1 year ago

kloczek commented 1 year ago
+ /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.

madzak commented 1 year ago

Resolved in Pull Request #165