Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

2.0.4: pytest is not able to find units #159

@kloczek

Description

@kloczek
+ /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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions