(env, pytester: Pytester, monkeypatch: MonkeyPatch)
| 178 | |
| 179 | @pytest.mark.parametrize("env", ((), ("TOX_ENV_DIR", "/tox_env_dir"))) |
| 180 | def test_cache_reportheader(env, pytester: Pytester, monkeypatch: MonkeyPatch) -> None: |
| 181 | pytester.makepyfile("""def test_foo(): pass""") |
| 182 | if env: |
| 183 | monkeypatch.setenv(*env) |
| 184 | expected = os.path.join(env[1], ".pytest_cache") |
| 185 | else: |
| 186 | monkeypatch.delenv("TOX_ENV_DIR", raising=False) |
| 187 | expected = ".pytest_cache" |
| 188 | result = pytester.runpytest("-v") |
| 189 | result.stdout.fnmatch_lines(["cachedir: %s" % expected]) |
| 190 | |
| 191 | |
| 192 | def test_cache_reportheader_external_abspath( |
nothing calls this directly
no test coverage detected