(self, capsys)
| 649 | assert retcode == ExitCode.NO_TESTS_COLLECTED |
| 650 | |
| 651 | def test_invoke_plugin_api(self, capsys) -> None: |
| 652 | class MyPlugin: |
| 653 | def pytest_addoption(self, parser): |
| 654 | parser.addoption("--myopt") |
| 655 | |
| 656 | pytest.main(["-h"], plugins=[MyPlugin()]) |
| 657 | out, _err = capsys.readouterr() |
| 658 | assert "--myopt" in out |
| 659 | |
| 660 | def test_pyargs_importerror(self, pytester: Pytester, monkeypatch) -> None: |
| 661 | monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", False) |
nothing calls this directly
no test coverage detected