MCPcopy
hub / github.com/redis/redis-py / test_sort_alpha

Method test_sort_alpha

tests/test_commands.py:5593–5595  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

5591 assert r.sort("a", desc=True) == [b"3", b"2", b"1"]
5592
5593 def test_sort_alpha(self, r):
5594 r.rpush("a", "e", "c", "b", "d", "a")
5595 assert r.sort("a", alpha=True) == [b"a", b"b", b"c", b"d", b"e"]
5596
5597 @pytest.mark.onlynoncluster
5598 def test_sort_store(self, r):

Callers

nothing calls this directly

Calls 2

rpushMethod · 0.80
sortMethod · 0.80

Tested by

no test coverage detected