Added possibility to use empty callback data factory filter

This commit is contained in:
Alex Root Junior 2021-07-29 00:05:15 +03:00
parent 7d56751b09
commit 5e3356fa62
3 changed files with 13 additions and 5 deletions

View file

@ -42,6 +42,10 @@ async def redis_storage(redis_server):
if not redis_server:
pytest.skip("Redis is not available here")
storage = RedisStorage.from_url(redis_server)
try:
await storage.redis.info()
except ConnectionError as e:
pytest.skip(str(e))
try:
yield storage
finally: