MCPcopy Create free account
hub / github.com/pytest-dev/pytest / error_pytester

Function error_pytester

testing/test_stepwise.py:58–69  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

56
57@pytest.fixture
58def error_pytester(pytester: Pytester) -> Pytester:
59 pytester.makepyfile(
60 test_a="""
61def test_error(nonexisting_fixture):
62 assert 1
63
64def test_success_after_fail():
65 assert 1
66"""
67 )
68
69 return pytester
70
71
72@pytest.fixture

Callers

nothing calls this directly

Calls 1

makepyfileMethod · 0.45

Tested by

no test coverage detected