diff options
author | Roey Prat <roey.prat@redislabs.com> | 2018-10-02 18:17:00 +0300 |
---|---|---|
committer | Roey Prat <roey.prat@redislabs.com> | 2018-10-28 12:12:53 +0200 |
commit | ce2231697d5dcd746f7b51b6a40b291b310e1f5f (patch) | |
tree | 06dc98b9a8537bcb44010778afca5a77692bc7b6 | |
parent | 2699f31ddf7923bcb027da44d4e94d89c7d25e8d (diff) | |
download | redis-py-ce2231697d5dcd746f7b51b6a40b291b310e1f5f.tar.gz |
run tests of commands added in redis 5, if redis>=5
-rw-r--r-- | tests/test_commands.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 617a9d1..b89b0c7 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1603,7 +1603,7 @@ class TestRedisCommands(object): class TestStrictCommands(object): - @skip_if_server_version_lt('6.0.0') + @skip_if_server_version_lt('5.0.0') def test_strict_xrange(self, sr): varname = 'xrange_test' sr.delete(varname) @@ -1690,7 +1690,7 @@ class TestStrictCommands(object): assert sr.xgroup_destroy(name=stream_name, groupname=group_name) == 1 - @skip_if_server_version_lt('4.9.105') + @skip_if_server_version_lt('5.0.0') def test_strict_xack(self, sr): stream_name = 'xack_test_stream' sr.delete(stream_name) @@ -1700,7 +1700,7 @@ class TestStrictCommands(object): assert sr.xack(stream_name, group_name, '1-1') == 0 assert sr.xack(stream_name, group_name, *[x for x in range(5)]) == 0 - @skip_if_server_version_lt('4.9.105') + @skip_if_server_version_lt('5.0.0') def test_strict_xdel(self, sr): stream_name = 'xdel_test_stream' sr.delete(stream_name) @@ -1714,7 +1714,7 @@ class TestStrictCommands(object): assert sr.xdel(stream_name, 1, stamp) == 1 assert sr.xdel(stream_name, 1, stamp, 42) == 0 - @skip_if_server_version_lt('4.9.105') + @skip_if_server_version_lt('5.0.0') def test_strict_xtrim(self, sr): stream_name = 'xtrim_test_stream' sr.delete(stream_name) |