. 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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.