The project has so many modules. There are functional test cases being written for almost every api written like for GET requests, POST requests and PUT requests. To test an individual file we use the syntact pytest tests/file_name.py but I want to test a specific method in that file. Is there any way to test it like that??
CodePudding user response:
Duplicate of Is there a way to specify which pytest tests to run from a file?
In a few words, you can use the -k option of pytest to specify the name of the test you would like to run.