pytest supports running unittest.TestCase classes. To support it, we'd need to extract the definition line and check if it inherits from unittest.TestCase. However, python-mode does not contain a jump-to-definition function and so we'd either have to depend on something like jedi or directly ask python. Both options are not optimal. Another option would be to use pytest's --collect-only output.
pytestsupports runningunittest.TestCaseclasses. To support it, we'd need to extract the definition line and check if it inherits fromunittest.TestCase. However,python-modedoes not contain ajump-to-definitionfunction and so we'd either have to depend on something likejedior directly askpython. Both options are not optimal. Another option would be to usepytest's--collect-onlyoutput.