Is there a way to specify which pytest tests to run from a file?
You can use -k option to run test cases with different patterns: This will run test cases with name test_001 and test_some_other_test deselecting the rest of the test cases. Note: This will select any test case starting with test_001 or test_some_other_test. For example, if you have test case test_0012 it will also be selected.