(
env: Sequence[str], pytester: Pytester, monkeypatch: MonkeyPatch
)
| 198 | |
| 199 | @pytest.mark.parametrize("env", ((), ("TOX_ENV_DIR", "mydir/tox-env"))) |
| 200 | def test_cache_reportheader( |
| 201 | env: Sequence[str], pytester: Pytester, monkeypatch: MonkeyPatch |
| 202 | ) -> None: |
| 203 | pytester.makepyfile("""def test_foo(): pass""") |
| 204 | if env: |
| 205 | monkeypatch.setenv(*env) |
| 206 | expected = os.path.join(env[1], ".pytest_cache") |
| 207 | else: |
| 208 | monkeypatch.delenv("TOX_ENV_DIR", raising=False) |
| 209 | expected = ".pytest_cache" |
| 210 | result = pytester.runpytest("-v") |
| 211 | result.stdout.fnmatch_lines([f"cachedir: {expected}"]) |
| 212 | |
| 213 | |
| 214 | def test_cache_reportheader_external_abspath( |
nothing calls this directly
no test coverage detected