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

Function test_monkeypatch_plugin

testing/test_monkeypatch.py:235–243  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

233
234
235def test_monkeypatch_plugin(pytester: Pytester) -> None:
236 reprec = pytester.inline_runsource(
237 """
238 def test_method(monkeypatch):
239 assert monkeypatch.__class__.__name__ == "MonkeyPatch"
240 """
241 )
242 res = reprec.countoutcomes()
243 assert tuple(res) == (1, 0, 0), res
244
245
246def test_syspath_prepend(mp: MonkeyPatch) -> None:

Callers

nothing calls this directly

Calls 2

countoutcomesMethod · 0.80
inline_runsourceMethod · 0.45

Tested by

no test coverage detected