diff options
author | Chayim I. Kirshen <c@kirshen.com> | 2021-12-02 19:22:03 +0200 |
---|---|---|
committer | Chayim I. Kirshen <c@kirshen.com> | 2021-12-02 19:22:03 +0200 |
commit | d1ae2eb7f183103a8eff781beb52eec7446ad2a3 (patch) | |
tree | 66ae3706f2226eb04b8a65dd228b208b24298deb /tests/test_commands.py | |
parent | f5d5610f0b77468bc84c3c9764a5d86ee7883410 (diff) | |
download | redis-py-ROLE.tar.gz |
master merge, fixing tests with now clusterROLE
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index af52fbd..556df84 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -653,12 +653,14 @@ class TestRedisCommands: def test_quit(self, r): assert r.quit() - @skip_if_server_version_lt('2.8.12') + @skip_if_server_version_lt("2.8.12") + @pytest.mark.onlynoncluster def test_role(self, r): - assert r.role()[0] == b'master' + assert r.role()[0] == b"master" assert isinstance(r.role()[1], int) assert isinstance(r.role()[2], list) + @pytest.mark.onlynoncluster def test_slowlog_get(self, r, slowlog): assert r.slowlog_reset() unicode_string = chr(3456) + "abcd" + chr(3421) |