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

Method test_sort_by

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

Source from the content-addressed store, hash-verified

5504
5505 @pytest.mark.onlynoncluster
5506 def test_sort_by(self, r):
5507 r["score:1"] = 8
5508 r["score:2"] = 3
5509 r["score:3"] = 5
5510 r.rpush("a", "3", "2", "1")
5511 assert r.sort("a", by="score:*") == [b"2", b"3", b"1"]
5512
5513 @pytest.mark.onlynoncluster
5514 def test_sort_get(self, r):

Callers

nothing calls this directly

Calls 2

rpushMethod · 0.80
sortMethod · 0.80

Tested by

no test coverage detected