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

Method test_sort_limited

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

Source from the content-addressed store, hash-verified

5499 assert r.sort("a") == [b"1", b"2", b"3", b"4"]
5500
5501 def test_sort_limited(self, r):
5502 r.rpush("a", "3", "2", "1", "4")
5503 assert r.sort("a", start=1, num=2) == [b"2", b"3"]
5504
5505 @pytest.mark.onlynoncluster
5506 def test_sort_by(self, r):

Callers

nothing calls this directly

Calls 2

rpushMethod · 0.80
sortMethod · 0.80

Tested by

no test coverage detected