(
self, pytester: Pytester, tmp_path: Path, monkeypatch: MonkeyPatch
)
| 79 | assert result.ret == 0 |
| 80 | |
| 81 | def test_append_parse_args( |
| 82 | self, pytester: Pytester, tmp_path: Path, monkeypatch: MonkeyPatch |
| 83 | ) -> None: |
| 84 | monkeypatch.setenv("PYTEST_ADDOPTS", '--color no -rs --tb="short"') |
| 85 | tmp_path.joinpath("pytest.ini").write_text( |
| 86 | textwrap.dedent( |
| 87 | """\ |
| 88 | [pytest] |
| 89 | addopts = --verbose |
| 90 | """ |
| 91 | ) |
| 92 | ) |
| 93 | config = pytester.parseconfig(tmp_path) |
| 94 | assert config.option.color == "no" |
| 95 | assert config.option.reportchars == "s" |
| 96 | assert config.option.tbstyle == "short" |
| 97 | assert config.option.verbose |
| 98 | |
| 99 | def test_tox_ini_wrong_version(self, pytester: Pytester) -> None: |
| 100 | pytester.makefile( |
nothing calls this directly
no test coverage detected