summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-14 21:23:21 -0800
committerGitHub <noreply@github.com>2018-11-14 21:23:21 -0800
commita32a01cf7b76ae0c8f711b639df6719d58393970 (patch)
treed707e8cebabf1081af65cea6db2d876387554aee /tests/test_commands.py
parent04af0d6456195c15b9a881c5fa9aed95bf51a8ca (diff)
parenta945e7c2e1de4e48bd3515c6e83f6a8fe3f23543 (diff)
downloadredis-py-a32a01cf7b76ae0c8f711b639df6719d58393970.tar.gz
Merge pull request #925 from itamarhaber/sort_issue
Fixes a KeyError in empty `options` dict at sort's return
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 768d49f..8a6be40 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -1520,6 +1520,11 @@ class TestRedisCommands(object):
assert r.lrange('sorted', 0, 10) == \
[b'vodka', b'milk', b'gin', b'apple juice']
+ def test_sort_issue_924(self, r):
+ # Tests for issue https://github.com/andymccurdy/redis-py/issues/924
+ r.execute_command('SADD', 'issue#924', 1)
+ r.execute_command('SORT', 'issue#924')
+
def test_cluster_addslots(self, mock_cluster_resp_ok):
assert mock_cluster_resp_ok.cluster('ADDSLOTS', 1) is True