MCPcopy
hub / github.com/marimo-team/marimo / test_cache_basic_restore

Method test_cache_basic_restore

tests/_save/test_cache.py:160–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159 @staticmethod
160 def test_cache_basic_restore() -> None:
161 cache = Cache(
162 defs={},
163 hash="123",
164 cache_type="Pure",
165 stateful_refs=set(),
166 hit=True,
167 meta={"return": 42},
168 )
169 scope = {}
170 cache.restore(scope)
171 assert cache.meta["return"] == 42
172
173 @staticmethod
174 def test_cache_recursive_restore() -> None:

Callers

nothing calls this directly

Calls 2

restoreMethod · 0.95
CacheClass · 0.90

Tested by

no test coverage detected