PyTest - Test Organization
Which filename pattern will pytest automatically detect as a test module when scanning a directory?
test_ or ending with _test.py as test modules.test_example.py starts with test_ so pytest detects it.example_test.py ends with _test.py which is also valid and detected by pytest.example.py does not follow naming conventions.TestExample.py uses uppercase and does not start with test_.test_ or end with _test.py [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions