Which of the following commands run only one test case, present in sample_module.py using pytest?

Questions & AnswersCategory: Programming LanguageWhich of the following commands run only one test case, present in sample_module.py using pytest?
Adam asked 3 years ago

Which of the following commands run only one test case, present in sample_module.py using pytest?
a. py.test
b. py.test sample_module.py
c. py.test sample_module.py::TestCase1
d. py.test sample_module.py::TestCase1::test_method1