MCPcopy
hub / github.com/pytest-dev/pytest / test_fixture_mock_integration

Function test_fixture_mock_integration

testing/acceptance_test.py:1247–1251  ·  view source on GitHub ↗

Test that decorators applied to fixture are left working (#3774)

(pytester: Pytester)

Source from the content-addressed store, hash-verified

1245
1246
1247def test_fixture_mock_integration(pytester: Pytester) -> None:
1248 """Test that decorators applied to fixture are left working (#3774)"""
1249 p = pytester.copy_example("acceptance/fixture_mock_integration.py")
1250 result = pytester.runpytest(p)
1251 result.stdout.fnmatch_lines(["*1 passed*"])
1252
1253
1254def test_usage_error_code(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
copy_exampleMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected