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