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

Function setup

core/tests/python/tests/test_storage.py:10–18  ·  view source on GitHub ↗

Set up a clean test storage before each test.

()

Source from the content-addressed store, hash-verified

8
9
10async def setup():
11 """
12 Set up a clean test storage before each test.
13 """
14 global test_store
15 if test_store is None:
16 test_store = await storage("test_store")
17 test_store.clear()
18 await test_store.sync()
19
20
21async def teardown():

Callers

nothing calls this directly

Calls 3

storageFunction · 0.90
syncMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected