Creating storage with empty name should raise ValueError.
()
| 240 | |
| 241 | |
| 242 | async 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 | |
| 253 | async def test_custom_storage_class(): |