PyTest - Basics and Setup
Which filename will pytest automatically recognize as a test file when running tests?
test_ or end with _test.py, but the recommended and most reliable pattern is starting with test_.test_utils.py starts with test_ - valid.utils_test.py ends with _test.py - also valid but less common.TestUtils.py starts with uppercase 'T' - pytest is case-sensitive and expects lowercase test_.utils.py does not follow naming conventions - invalid.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions