Skip to content

SRTALGO - skip for redis versions greater than 7.0.0 #1831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 26, 2021
Merged
2 changes: 2 additions & 0 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,7 @@ def test_setrange(self, r):
assert r["a"] == b"abcdef12345"

@skip_if_server_version_lt("6.0.0")
@skip_if_server_version_gte("7.0.0")
def test_stralgo_lcs(self, r):
key1 = "{foo}key1"
key2 = "{foo}key2"
Expand Down Expand Up @@ -1372,6 +1373,7 @@ def test_stralgo_lcs(self, r):
) == {"len": len(res), "matches": [[4, (4, 7), (5, 8)]]}

@skip_if_server_version_lt("6.0.0")
@skip_if_server_version_gte("7.0.0")
def test_stralgo_negative(self, r):
with pytest.raises(exceptions.DataError):
r.stralgo("ISSUB", "value1", "value2")
Expand Down