diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2018-11-14 21:23:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 21:23:21 -0800 |
commit | a32a01cf7b76ae0c8f711b639df6719d58393970 (patch) | |
tree | d707e8cebabf1081af65cea6db2d876387554aee /tests/test_commands.py | |
parent | 04af0d6456195c15b9a881c5fa9aed95bf51a8ca (diff) | |
parent | a945e7c2e1de4e48bd3515c6e83f6a8fe3f23543 (diff) | |
download | redis-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.py | 5 |
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 |