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.
2 parents 9cb8517 + 7d87a1b commit f7585c7Copy full SHA for f7585c7
testing/python/fixture.py
@@ -490,6 +490,20 @@ def test_func(something): pass
490
print(ss.stack)
491
assert teardownlist == [1]
492
493
+ def test_mark_as_fixture_with_prefix_and_decorator_fails(self, testdir):
494
+ testdir.makeconftest("""
495
+ import pytest
496
+
497
+ @pytest.fixture
498
+ def pytest_funcarg__marked_with_prefix_and_decorator():
499
+ pass
500
+ """)
501
+ result = testdir.runpytest_subprocess()
502
+ assert result.ret != 0
503
+ result.stdout.fnmatch_lines([
504
+ "*AssertionError:*pytest_funcarg__marked_with_prefix_and_decorator*"
505
+ ])
506
507
def test_request_addfinalizer_failing_setup(self, testdir):
508
testdir.makepyfile("""
509
import pytest
0 commit comments