diff options
author | Avital Fine <79420960+AvitalFineRedis@users.noreply.github.com> | 2021-12-02 18:53:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 19:53:00 +0200 |
commit | c2d4621d5da2f4506fb484eb787f004a235c76b1 (patch) | |
tree | bcc2e7f329996bc2ee97e1e5c18ed47dad028e54 /tests/test_commands.py | |
parent | 48b19dfc526102864c7289cf1f3c4889c858d359 (diff) | |
download | redis-py-c2d4621d5da2f4506fb484eb787f004a235c76b1.tar.gz |
Adding ROLE Command (#1610)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 7c7d0f3..556df84 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -653,6 +653,13 @@ class TestRedisCommands: def test_quit(self, r): assert r.quit() + @skip_if_server_version_lt("2.8.12") + @pytest.mark.onlynoncluster + def test_role(self, r): + 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() |