From 98de096f3b1e178a58f6b32a3afa91206599446d Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Tue, 15 Jun 2021 01:01:32 +0300 Subject: [PATCH] Correctly skip Redis tests --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 392a07c2..92dd97fe 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -39,6 +39,8 @@ def redis_server(request): @pytest.fixture() @pytest.mark.redis async def redis_storage(redis_server): + if not redis_server: + pytest.skip("Redis is not available here") storage = RedisStorage.from_url(redis_server) try: yield storage