diff options
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index e2e3cbb..768d49f 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1601,6 +1601,12 @@ class TestRedisCommands(object): assert r.geodist('barcelona', 'place1', 'place2', 'km') == 3.0674 @skip_if_server_version_lt('3.2.0') + def test_geodist_missing_one_member(self, r): + values = (2.1909389952632, 41.433791470673, 'place1') + r.geoadd('barcelona', *values) + assert r.geodist('barcelona', 'place1', 'missing_member', 'km') is None + + @skip_if_server_version_lt('3.2.0') def test_geodist_invalid_units(self, r): with pytest.raises(exceptions.RedisError): assert r.geodist('x', 'y', 'z', 'inches') |