We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fec89f4 commit ad4f69bCopy full SHA for ad4f69b
ansible_base/lib/testing/util.py
@@ -14,7 +14,7 @@ def copy_fixture(copies=1):
14
"""
15
16
def wrapper(func):
17
- if '_pytestfixturefunction' not in dir(func):
+ if '_fixture_function' not in dir(func):
18
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")
19
20
module_name = func.__module__
0 commit comments