Make sure test prefixed functions are checked for pytest fixtures, see #791

This commit is contained in:
Dave Halter
2019-12-31 21:31:46 +01:00
parent 1da0a7bd58
commit dfd7910dd3

View File

@@ -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)