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

Method test_sort_get

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

Source from the content-addressed store, hash-verified

5512
5513 @pytest.mark.onlynoncluster
5514 def test_sort_get(self, r):
5515 r["user:1"] = "u1"
5516 r["user:2"] = "u2"
5517 r["user:3"] = "u3"
5518 r.rpush("a", "2", "3", "1")
5519 assert r.sort("a", get="user:*") == [b"u1", b"u2", b"u3"]
5520
5521 @pytest.mark.onlynoncluster
5522 def test_sort_get_multi(self, r):

Callers

nothing calls this directly

Calls 2

rpushMethod · 0.80
sortMethod · 0.80

Tested by

no test coverage detected