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

Method test_sort_get_multi

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

Source from the content-addressed store, hash-verified

5520
5521 @pytest.mark.onlynoncluster
5522 def test_sort_get_multi(self, r):
5523 r["user:1"] = "u1"
5524 r["user:2"] = "u2"
5525 r["user:3"] = "u3"
5526 r.rpush("a", "2", "3", "1")
5527 assert r.sort("a", get=("user:*", "#")) == [
5528 b"u1",
5529 b"1",
5530 b"u2",
5531 b"2",
5532 b"u3",
5533 b"3",
5534 ]
5535
5536 @pytest.mark.onlynoncluster
5537 def test_sort_get_groups_two(self, r):

Callers

nothing calls this directly

Calls 2

rpushMethod · 0.80
sortMethod · 0.80

Tested by

no test coverage detected