Make sure test prefixed functions are checked for pytest fixtures, see #791
This commit is contained in:
1 parent
1da0a7bd58
commit
dfd7910dd3
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user