I have a test_method() in a directory /tests. I want to run a single test from the command line. Instead of using test_module.TestClass.test_method I wish to just mention it as
$ ./test-runner test_method
and let the discover decide the test_method belongs to which test_module and in which TestClass. I am able to get the test_module by running a search based on strings in all test_modules present as test_module is python file. But how to get the TestClass holding the test_method within the file? Any idea?