Skip to content

Commit

Permalink
Make sure test prefixed functions are checked for pytest fixtures, see
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Dec 31, 2019
1 parent 1da0a7b commit dfd7910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jedi/plugins/pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit dfd7910

Please sign in to comment.