MCPcopy
hub / github.com/psf/black / test_read_cache_no_cachefile

Method test_read_cache_no_cachefile

tests/test_black.py:2358–2361  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2356 assert two.read_text(encoding="utf-8") == 'print("hello")\n'
2357
2358 def test_read_cache_no_cachefile(self) -> None:
2359 mode = DEFAULT_MODE
2360 with cache_dir():
2361 assert black.Cache.read(mode).file_data == {}
2362
2363 def test_write_cache_read_cache(self) -> None:
2364 mode = DEFAULT_MODE

Callers

nothing calls this directly

Calls 2

cache_dirFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected