31 lines · 985 B · Scheme
RawDownload
; subclasses of unittest.TestCase or TestCase(    (class_definition        name: (identifier) @run @_unittest_class_name        superclasses: (argument_list            [(identifier) @_superclass            (attribute (identifier) @_superclass)]        )        (#eq? @_superclass "TestCase")    ) @python-unittest-class    (#set! tag python-unittest-class)) ; test methods whose names start with `test` in a TestCase(    (class_definition        name: (identifier) @_unittest_class_name        superclasses: (argument_list            [(identifier) @_superclass            (attribute (identifier) @_superclass)]        )        (#eq? @_superclass "TestCase")        body: (block                (function_definition                    name: (identifier) @run @_unittest_method_name                    (#match? @_unittest_method_name "^test.*")                ) @python-unittest-method                (#set! tag python-unittest-method)            )        ))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t