After file content changes, load_cached returns None.
(tmp_file, cache_root)
| 43 | |
| 44 | |
| 45 | def test_cache_miss_on_change(tmp_file, cache_root): |
| 46 | """After file content changes, load_cached returns None.""" |
| 47 | result = {"nodes": [], "edges": [{"source": "a", "target": "b"}]} |
| 48 | save_cached(tmp_file, result, root=cache_root) |
| 49 | # Modify the file |
| 50 | tmp_file.write_text("completely different content") |
| 51 | assert load_cached(tmp_file, root=cache_root) is None |
| 52 | |
| 53 | |
| 54 | def test_cached_files(tmp_path, cache_root): |
nothing calls this directly
no test coverage detected