(self)
| 2231 | assert not cache.is_changed(src) |
| 2232 | |
| 2233 | def test_cache_single_file_already_cached(self) -> None: |
| 2234 | mode = DEFAULT_MODE |
| 2235 | with cache_dir() as workspace: |
| 2236 | src = (workspace / "test.py").resolve() |
| 2237 | src.write_text("print('hello')", encoding="utf-8") |
| 2238 | cache = black.Cache.read(mode) |
| 2239 | cache.write([src]) |
| 2240 | invokeBlack([str(src)]) |
| 2241 | assert src.read_text(encoding="utf-8") == "print('hello')" |
| 2242 | |
| 2243 | @event_loop() |
| 2244 | def test_cache_multiple_files(self) -> None: |
nothing calls this directly
no test coverage detected