Save then load returns the same result dict.
(tmp_file, cache_root)
| 35 | |
| 36 | |
| 37 | def test_cache_roundtrip(tmp_file, cache_root): |
| 38 | """Save then load returns the same result dict.""" |
| 39 | result = {"nodes": [{"id": "n1", "label": "Node1"}], "edges": []} |
| 40 | save_cached(tmp_file, result, root=cache_root) |
| 41 | loaded = load_cached(tmp_file, root=cache_root) |
| 42 | assert loaded == result |
| 43 | |
| 44 | |
| 45 | def test_cache_miss_on_change(tmp_file, cache_root): |
nothing calls this directly
no test coverage detected