MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_storage_persistence

Function test_storage_persistence

core/tests/python/tests/test_storage.py:155–164  ·  view source on GitHub ↗

Data should persist after sync and reload.

()

Source from the content-addressed store, hash-verified

153
154
155async def test_storage_persistence():
156 """
157 Data should persist after sync and reload.
158 """
159 test_store["persistent"] = "value"
160 await test_store.sync()
161
162 # Reload the same storage.
163 reloaded = await storage("test_store")
164 assert reloaded["persistent"] == "value"
165
166
167async def test_storage_nested_structures():

Callers

nothing calls this directly

Calls 2

storageFunction · 0.90
syncMethod · 0.80

Tested by

no test coverage detected