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

Method test_rpushx

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

Source from the content-addressed store, hash-verified

4049 assert r.lpos("a", "c", count=0, maxlen=7, rank=2) == [6]
4050
4051 def test_rpushx(self, r):
4052 assert r.rpushx("a", "b") == 0
4053 assert r.lrange("a", 0, -1) == []
4054 r.rpush("a", "1", "2", "3")
4055 assert r.rpushx("a", "4") == 4
4056 assert r.lrange("a", 0, -1) == [b"1", b"2", b"3", b"4"]
4057
4058 @pytest.mark.onlynoncluster
4059 def test_lists_with_byte_keys(self, r):

Callers

nothing calls this directly

Calls 3

rpushxMethod · 0.80
lrangeMethod · 0.80
rpushMethod · 0.80

Tested by

no test coverage detected