kaste / PyTest

pytest runner and view annotator for sublime text
21 stars 6 forks source link

Fix test discovery at class level (follows #31) #34

Closed jodylent closed 2 years ago

jodylent commented 3 years ago

Following #31, I noticed a bug (of my own introduction): Discovery via get_test_under_cursor works fine for FooTests.test_method_1, but not when cursor is at FooTests itself

This PR fixes that by adjusting find_test.NAME_MATCH, and adds test cases for top-level FooTest(s) invocations of get_test_under_cursor.

jodylent commented 3 years ago

@kaste nudge -- don't know if you have notifications on for this repo

kaste commented 2 years ago

Sorry but had my sabbatical months.

This looks fine and I take it as is.