Skip to content

Commit

Permalink
Remove skip if decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Jan 5, 2022
1 parent e3608da commit fdde160
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 161 deletions.
15 changes: 0 additions & 15 deletions tests/client/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import pytest
import sys
from unittest.mock import Mock
from distutils.version import StrictVersion


_REDIS_VERSIONS = {}

Expand All @@ -22,19 +20,6 @@ async def get_version(**kwargs):
return _REDIS_VERSIONS[key]


def skip_if_server_version_lt(min_version):
loop = asyncio.get_event_loop()
version = StrictVersion(loop.run_until_complete(get_version()))
check = version < StrictVersion(min_version)
return pytest.mark.skipif(check, reason="")


def skip_python_vsersion_lt(min_version):
min_version = tuple(map(int, min_version.split('.')))
check = sys.version_info[:2] < min_version
return pytest.mark.skipif(check, reason="")


@pytest.fixture()
def r(event_loop):
return coredis.StrictRedis(loop=event_loop)
Expand Down
Loading

0 comments on commit fdde160

Please sign in to comment.