DEV Community

Discussion on: Python TDD with Pytest -- Getting Started

Collapse
 
wangonya profile image
Kelvin Wangonya

Hey @aderchox . If the test is in a different file, still just running pytest while in the project directory should discover the test files, as long as they're named in the format test_*.py.
You can read more about test discovery here.