(self, capsys)
| 578 | out, err = capsys.readouterr() |
| 579 | |
| 580 | def test_invoke_plugin_api(self, capsys) -> None: |
| 581 | class MyPlugin: |
| 582 | def pytest_addoption(self, parser): |
| 583 | parser.addoption("--myopt") |
| 584 | |
| 585 | pytest.main(["-h"], plugins=[MyPlugin()]) |
| 586 | out, err = capsys.readouterr() |
| 587 | assert "--myopt" in out |
| 588 | |
| 589 | def test_pyargs_importerror(self, pytester: Pytester, monkeypatch) -> None: |
| 590 | monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", False) |
nothing calls this directly
no test coverage detected