Skip to content

Commit ad4f69b

Browse files
Fix how we are determine fixture functions (#733)
1 parent fec89f4 commit ad4f69b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible_base/lib/testing/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def copy_fixture(copies=1):
1414
"""
1515

1616
def wrapper(func):
17-
if '_pytestfixturefunction' not in dir(func):
17+
if '_fixture_function' not in dir(func):
1818
raise TypeError(f"Can't apply copy_fixture to {func.__name__} because it is not a fixture. HINT: @copy_fixture must be *above* @pytest.fixture")
1919

2020
module_name = func.__module__

0 commit comments

Comments
 (0)