MCPcopy Create free account
hub / github.com/psf/black / test_write_cache_write_fail

Method test_write_cache_write_fail

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

Source from the content-addressed store, hash-verified

2117 assert str(clean) in cache
2118
2119 def test_write_cache_write_fail(self) -> None:
2120 mode = DEFAULT_MODE
2121 with cache_dir(), patch.object(Path, "open") as mock:
2122 mock.side_effect = OSError
2123 black.write_cache({}, [], mode)
2124
2125 def test_read_cache_line_lengths(self) -> None:
2126 mode = DEFAULT_MODE

Callers

nothing calls this directly

Calls 1

cache_dirFunction · 0.85

Tested by

no test coverage detected