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

Method test_cache_basic_update

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

Source from the content-addressed store, hash-verified

24class TestCache:
25 @staticmethod
26 def test_cache_basic_update() -> None:
27 cache = Cache(
28 defs={},
29 hash="123",
30 cache_type="Pure",
31 stateful_refs=set(),
32 hit=True,
33 meta={},
34 )
35 scope = {}
36 ret = 1
37 cache.update(scope, {"return": ret})
38 assert cache.meta["return"] == ret
39
40 @staticmethod
41 def test_cache_recursive_update() -> None:

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
CacheClass · 0.90

Tested by

no test coverage detected