Skip to content

Commit 84dd6c1

Browse files
author
Gabriel Erzse
committed
Extend two older tests
1 parent cb2c330 commit 84dd6c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_commands.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,8 @@ def test_hscan(self, r):
21622162
assert dic == {b"a": b"1", b"b": b"2", b"c": b"3"}
21632163
_, dic = r.hscan("a", match="a")
21642164
assert dic == {b"a": b"1"}
2165+
_, dic = r.hscan("a_notset")
2166+
assert dic == {}
21652167

21662168
@skip_if_server_version_lt("7.2.6")
21672169
def test_hscan_novalues(self, r):
@@ -2181,6 +2183,8 @@ def test_hscan_iter(self, r):
21812183
assert dic == {b"a": b"1", b"b": b"2", b"c": b"3"}
21822184
dic = dict(r.hscan_iter("a", match="a"))
21832185
assert dic == {b"a": b"1"}
2186+
dic = dict(r.hscan_iter("a_notset"))
2187+
assert dic == {}
21842188

21852189
@skip_if_server_version_lt("7.2.6")
21862190
def test_hscan_iter_novalues(self, r):

0 commit comments

Comments
 (0)