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

Method test_geoadd_xx

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

Source from the content-addressed store, hash-verified

5775
5776 @skip_if_server_version_lt("6.2.0")
5777 def test_geoadd_xx(self, r):
5778 values = (2.1909389952632, 41.433791470673, "place1")
5779 assert r.geoadd("a", values) == 1
5780 values = (2.1909389952632, 41.433791470673, "place1") + (
5781 2.1873744593677,
5782 41.406342043777,
5783 "place2",
5784 )
5785 assert r.geoadd("a", values, xx=True) == 0
5786 assert r.zrange("a", 0, -1) == [b"place1"]
5787
5788 @skip_if_server_version_lt("6.2.0")
5789 def test_geoadd_ch(self, r):

Callers

nothing calls this directly

Calls 2

geoaddMethod · 0.80
zrangeMethod · 0.80

Tested by

no test coverage detected