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

Function test_monkeypatch_plugin

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

Source from the content-addressed store, hash-verified

260
261
262def test_monkeypatch_plugin(pytester: Pytester) -> None:
263 reprec = pytester.inline_runsource(
264 """
265 def test_method(monkeypatch):
266 assert monkeypatch.__class__.__name__ == "MonkeyPatch"
267 """
268 )
269 res = reprec.countoutcomes()
270 assert tuple(res) == (1, 0, 0), res
271
272
273def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…