()
| 24 | class 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: |