X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f8bca4fbcb739daa6a89dd52c219713dd1173287..6e81596609518d9202a00bd457af0a75648d30d9:/test/python/cli/test_cmd_api.py?ds=inline diff --git a/test/python/cli/test_cmd_api.py b/test/python/cli/test_cmd_api.py index cff83cef..b794bccd 100644 --- a/test/python/cli/test_cmd_api.py +++ b/test/python/cli/test_cmd_api.py @@ -81,7 +81,7 @@ class TestCliDetailsCall: result = napi.DetailedResult(napi.SourceTable.PLACEX, ('place', 'thing'), napi.Point(1.0, -3.0)) - monkeypatch.setattr(napi.NominatimAPI, 'lookup', + monkeypatch.setattr(napi.NominatimAPI, 'details', lambda *args: result) @pytest.mark.parametrize("params", [('--node', '1'),