MCPcopy
hub / github.com/pytest-dev/pytest / test_get_cache_dir

Method test_get_cache_dir

testing/test_assertrewrite.py:2279–2283  ·  view source on GitHub ↗
(self, monkeypatch, prefix, source, expected)

Source from the content-addressed store, hash-verified

2277 ],
2278 )
2279 def test_get_cache_dir(self, monkeypatch, prefix, source, expected) -> None:
2280 monkeypatch.delenv("PYTHONPYCACHEPREFIX", raising=False)
2281 monkeypatch.setattr(sys, "pycache_prefix", prefix, raising=False)
2282
2283 assert get_cache_dir(Path(source)) == Path(expected)
2284
2285 def test_sys_pycache_prefix_integration(
2286 self, tmp_path, monkeypatch, pytester: Pytester

Callers

nothing calls this directly

Calls 3

get_cache_dirFunction · 0.90
delenvMethod · 0.80
setattrMethod · 0.80

Tested by

no test coverage detected