Skip to content

Commit c9f10f3

Browse files
committed
Marked tests with Redis 8.0
1 parent 898b842 commit c9f10f3

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

tests/test_asyncio/test_command_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from tests.conftest import skip_if_server_version_lt
66

77

8+
@pytest.mark.onlycluster
9+
@skip_if_server_version_lt("8.0.0")
810
class TestAsyncCommandParser:
9-
@skip_if_server_version_lt("7.0.0")
10-
@pytest.mark.onlycluster
1111
@pytest.mark.asyncio
1212
async def test_get_command_policies(self, r):
1313
commands_parser = AsyncCommandsParser()

tests/test_asyncio/test_command_policies.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
)
1313
from redis.commands.search.aggregation import AggregateRequest
1414
from redis.commands.search.field import NumericField, TextField
15+
from tests.conftest import skip_if_server_version_lt
1516

1617

1718
@pytest.mark.asyncio
@@ -82,6 +83,7 @@ async def test_resolve(self):
8283

8384
@pytest.mark.onlycluster
8485
@pytest.mark.asyncio
86+
@skip_if_server_version_lt("8.0.0")
8587
class TestClusterWithPolicies:
8688
async def test_resolves_correctly_policies(self, r: RedisCluster, monkeypatch):
8789
# original nodes selection method

tests/test_command_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_get_pubsub_keys(self, r):
108108
assert commands_parser.get_keys(r, *args3) == ["*"]
109109
assert commands_parser.get_keys(r, *args4) == ["foo1", "foo2", "foo3"]
110110

111-
@skip_if_server_version_lt("7.0.0")
111+
@skip_if_server_version_lt("8.0.0")
112112
@pytest.mark.onlycluster
113113
def test_get_command_policies(self, r):
114114
commands_parser = CommandsParser(r)

tests/test_command_policies.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from redis.commands.policies import DynamicPolicyResolver, StaticPolicyResolver
1111
from redis.commands.search.aggregation import AggregateRequest
1212
from redis.commands.search.field import TextField, NumericField
13+
from tests.conftest import skip_if_server_version_lt
1314

1415

1516
@pytest.mark.onlycluster
@@ -83,6 +84,7 @@ def test_resolve(self):
8384

8485

8586
@pytest.mark.onlycluster
87+
@skip_if_server_version_lt("8.0.0")
8688
class TestClusterWithPolicies:
8789
def test_resolves_correctly_policies(self, r, monkeypatch):
8890
# original nodes selection method

0 commit comments

Comments
 (0)