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

Function test_pytester_runs_with_plugin

testing/test_pytester.py:83–92  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

81
82
83def test_pytester_runs_with_plugin(pytester: Pytester) -> None:
84 pytester.makepyfile(
85 """
86 pytest_plugins = "pytester"
87 def test_hello(pytester):
88 assert 1
89 """
90 )
91 result = pytester.runpytest()
92 result.assert_outcomes(passed=1)
93
94
95def test_pytester_with_doctest(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

assert_outcomesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected