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