diff --git a/crates/languages/src/python/runnables.scm b/crates/languages/src/python/runnables.scm index c61e9a23e5de59d2583313bfec93d3a65560ae78..8cdb0d77eb249bb655d4421ce742c4d4afe5ad72 100644 --- a/crates/languages/src/python/runnables.scm +++ b/crates/languages/src/python/runnables.scm @@ -36,7 +36,7 @@ (function_definition name: (identifier) @run @_pytest_method_name (#match? @_pytest_method_name "^test_") - ) @python-pytest-method + ) @_python-pytest-method ) (#set! tag python-pytest-method) ) @@ -45,12 +45,12 @@ ( (module (decorated_definition - (decorator)+ @decorator + (decorator)+ @_decorator definition: (function_definition - name: (identifier) @run @_pytest_decorated_method_name - (#match? @_pytest_decorated_method_name "^test_") + name: (identifier) @run @_pytest_method_name + (#match? @_pytest_method_name "^test_") ) - ) @python-pytest-method + ) @_python-pytest-method ) (#set! tag python-pytest-method) ) @@ -76,7 +76,7 @@ (function_definition name: (identifier) @run @_pytest_method_name (#match? @_pytest_method_name "^test") - ) @python-pytest-method + ) @_python-pytest-method (#set! tag python-pytest-method) ) )