fix redis1 delete

This commit is contained in:
Andrey Tikhonov 2021-05-17 21:34:16 +03:00
parent 8ea3546cda
commit 4b8fd4bf71
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ class RedisStorage(BaseStorage):
conn = await self.redis()
if state is None and data == bucket == {}:
await conn.delete(addr)
await conn.execute('DEL', addr)
else:
record = {'state': state, 'data': data, 'bucket': bucket}
await conn.execute('SET', addr, json.dumps(record))

View file

@ -39,7 +39,7 @@ async def memory_store():
"store", [
pytest.lazy_fixture('redis_store'),
pytest.lazy_fixture('redis_store2'),
pytest.lazy_fixture('memory_store')
pytest.lazy_fixture('memory_store'),
]
)
class TestStorage: