summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 00752fa..b2bd2da 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -1065,6 +1065,14 @@ class TestRedisCommands(object):
_, keys = r.scan(match='a')
assert set(keys) == {b'a'}
+ @skip_if_server_version_lt('5.9.101')
+ def test_scan_type(self, r):
+ r.sadd('a-set', 1)
+ r.hset('a-hash', 'foo', 2)
+ r.lpush('a-list', 'aux', 3)
+ _, keys = r.scan(match='a*', _type='SET')
+ assert set(keys) == {b'a-set'}
+
@skip_if_server_version_lt('2.8.0')
def test_scan_iter(self, r):
r.set('a', 1)