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

Function test_storage_empty_name_raises

core/tests/python/tests/test_storage.py:242–250  ·  view source on GitHub ↗

Creating storage with empty name should raise ValueError.

()

Source from the content-addressed store, hash-verified

240
241
242async def test_storage_empty_name_raises():
243 """
244 Creating storage with empty name should raise ValueError.
245 """
246 try:
247 await storage("")
248 assert False, "Should have raised ValueError"
249 except ValueError as e:
250 assert "non-empty" in str(e)
251
252
253async def test_custom_storage_class():

Callers

nothing calls this directly

Calls 1

storageFunction · 0.90

Tested by

no test coverage detected