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

Method test_geoadd_ch

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

Source from the content-addressed store, hash-verified

5787
5788 @skip_if_server_version_lt("6.2.0")
5789 def test_geoadd_ch(self, r):
5790 values = (2.1909389952632, 41.433791470673, "place1")
5791 assert r.geoadd("a", values) == 1
5792 values = (2.1909389952632, 31.433791470673, "place1") + (
5793 2.1873744593677,
5794 41.406342043777,
5795 "place2",
5796 )
5797 assert r.geoadd("a", values, ch=True) == 2
5798 assert r.zrange("a", 0, -1) == [b"place1", b"place2"]
5799
5800 @skip_if_server_version_lt("3.2.0")
5801 def test_geoadd_invalid_params(self, r):

Callers

nothing calls this directly

Calls 2

geoaddMethod · 0.80
zrangeMethod · 0.80

Tested by

no test coverage detected