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

Method test_geodist

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

Source from the content-addressed store, hash-verified

5804
5805 @skip_if_server_version_lt("3.2.0")
5806 def test_geodist(self, r):
5807 values = (2.1909389952632, 41.433791470673, "place1") + (
5808 2.1873744593677,
5809 41.406342043777,
5810 "place2",
5811 )
5812 assert r.geoadd("barcelona", values) == 2
5813 assert r.geodist("barcelona", "place1", "place2") == 3067.4157
5814
5815 @skip_if_server_version_lt("3.2.0")
5816 def test_geodist_units(self, r):

Callers

nothing calls this directly

Calls 2

geoaddMethod · 0.80
geodistMethod · 0.80

Tested by

no test coverage detected