From dfd7910dd363d8e37673b4f42bdc7446dff28579 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 31 Dec 2019 21:31:46 +0100 Subject: [PATCH] Make sure test prefixed functions are checked for pytest fixtures, see #791 --- jedi/plugins/pytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/plugins/pytest.py b/jedi/plugins/pytest.py index addecff2..008c718f 100644 --- a/jedi/plugins/pytest.py +++ b/jedi/plugins/pytest.py @@ -99,7 +99,7 @@ def _is_a_pytest_param(param_name): def _is_pytest_func(func_name, decorator_nodes): - return func_name.startswith('test_') \ + return func_name.startswith('test') \ or any('fixture' in n.get_code() for n in decorator_nodes)