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

Method pastebinlist

testing/test_pastebin.py:16–20  ·  testing/test_pastebin.py::TestPasteCapture.pastebinlist
(self, monkeypatch, request)

Source from the content-addressed store, hash-verified

14class TestPasteCapture:
15 @pytest.fixture
16 def pastebinlist(self, monkeypatch, request) -> list[str | bytes]:
17 pastebinlist: list[str | bytes] = []
18 plugin = request.config.pluginmanager.getplugin(class="st">"pastebin")
19 monkeypatch.setattr(plugin, class="st">"create_new_paste", pastebinlist.append)
20 return pastebinlist
21
22 def test_failed(self, pytester: Pytester, pastebinlist) -> None:
23 testpath = pytester.makepyfile(

Callers

nothing calls this directly

Calls 2

getpluginMethod · 0.80
setattrMethod · 0.80

Tested by

no test coverage detected