]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/cli/test_cmd_api.py
rename lookup() API to details and add lookup call
[nominatim.git] / test / python / cli / test_cmd_api.py
index cff83cef0888f701a1de79ab7830a127ae2f150f..b794bccdb91a6dc76a2699927b7e60e8268a3e15 100644 (file)
@@ -81,7 +81,7 @@ class TestCliDetailsCall:
         result = napi.DetailedResult(napi.SourceTable.PLACEX, ('place', 'thing'),
                                      napi.Point(1.0, -3.0))
 
         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'),
                             lambda *args: result)
 
     @pytest.mark.parametrize("params", [('--node', '1'),