After file content changes, load_cached returns None.
(tmp_file, cache_root)
| 67 | |
| 68 | |
| 69 | def test_cache_miss_on_change(tmp_file, cache_root): |
| 70 | """After file content changes, load_cached returns None.""" |
| 71 | result = {"nodes": [], "edges": [{"source": "a", "target": "b"}]} |
| 72 | save_cached(tmp_file, result, root=cache_root) |
| 73 | # Modify the file |
| 74 | tmp_file.write_text("completely different content") |
| 75 | assert load_cached(tmp_file, root=cache_root) is None |
| 76 | |
| 77 | |
| 78 | def test_cached_files(tmp_path, cache_root): |
nothing calls this directly
no test coverage detected