Set up a clean test storage before each test.
()
| 8 | |
| 9 | |
| 10 | async 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 | |
| 21 | async def teardown(): |