Pytest\'s default discovery rules will import all Class starting with Test that do not have an __init__(). I have a situation where this causes an
Test
__init__()
Put all tests into files starting with test_ and add this to your pytest.ini:
test_
pytest.ini
[pytest] python_files=test_*.py
This will instruct pytest to discover tests only in test_*.py files.
test_*.py