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

Method pastebinlist

testing/test_pastebin.py:12–16  ·  view source on GitHub ↗
(self, monkeypatch, request)

Source from the content-addressed store, hash-verified

10class TestPasteCapture:
11 @pytest.fixture
12 def pastebinlist(self, monkeypatch, request) -> List[Union[str, bytes]]:
13 pastebinlist: List[Union[str, bytes]] = []
14 plugin = request.config.pluginmanager.getplugin("pastebin")
15 monkeypatch.setattr(plugin, "create_new_paste", pastebinlist.append)
16 return pastebinlist
17
18 def test_failed(self, pytester: Pytester, pastebinlist) -> None:
19 testpath = pytester.makepyfile(

Callers

nothing calls this directly

Calls 2

getpluginMethod · 0.80
setattrMethod · 0.80

Tested by

no test coverage detected