forked from hans/Nominatim
rename lookup() API to details and add lookup call
The initial plan to serve /details and /lookup endpoints from the same API call turned out to be impractical, so the API now also has deparate functions for both.
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user