fix(dashboard): prewarm cache and expose pick evidence
All checks were successful
CD Pipeline / deploy (push) Successful in 2m20s
All checks were successful
CD Pipeline / deploy (push) Successful in 2m20s
This commit is contained in:
@@ -72,8 +72,10 @@ def test_dashboard_cache_clear_restores_expected_shape(tmp_path, monkeypatch):
|
||||
from services import cache_manager
|
||||
|
||||
shared_cache = tmp_path / "dashboard_full_cache.pkl"
|
||||
stale_cache = tmp_path / "dashboard_full_cache_stale.pkl"
|
||||
shared_cache.write_bytes(b"stale")
|
||||
monkeypatch.setattr(cache_manager, "_DASHBOARD_SHARED_CACHE_FILE", shared_cache)
|
||||
monkeypatch.setattr(cache_manager, "_DASHBOARD_STALE_CACHE_FILE", stale_cache)
|
||||
|
||||
cache_manager._DASHBOARD_DATA_CACHE["consolidated_data"] = ["stale"]
|
||||
cache_manager._DASHBOARD_DATA_CACHE["full_data"] = ["stale"]
|
||||
@@ -88,6 +90,7 @@ def test_dashboard_cache_clear_restores_expected_shape(tmp_path, monkeypatch):
|
||||
"full_timestamp": None,
|
||||
}
|
||||
assert not shared_cache.exists()
|
||||
assert stale_cache.exists()
|
||||
|
||||
|
||||
def test_cache_dicts_are_only_defined_in_cache_manager():
|
||||
|
||||
Reference in New Issue
Block a user