mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
extend API unit tests
This commit is contained in:
@@ -93,9 +93,12 @@ class TestCli:
|
|||||||
assert func.called == 1
|
assert func.called == 1
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("params", [('search', '--query', 'new'),
|
@pytest.mark.parametrize("params", [('search', '--query', 'new', '--polygon-output', 'svg', '--polygon-threshold', '0.1'),
|
||||||
('reverse', '--lat', '0', '--lon', '0'),
|
('search', '--city', 'Berlin', '--format', 'xml', '--lang', 'de'),
|
||||||
('lookup', '--id', 'N1'),
|
('reverse', '--lat', '0', '--lon', '0',
|
||||||
|
'--polygon-output', 'svg', '--polygon-threshold', '0.1', '--format', 'json', '--lang', 'en'),
|
||||||
|
('lookup', '--id', 'N1',
|
||||||
|
'--polygon-output', 'svg', '--polygon-threshold', '0.1', '--format', 'json', '--lang', 'en'),
|
||||||
('details', '--node', '1'),
|
('details', '--node', '1'),
|
||||||
('details', '--way', '1'),
|
('details', '--way', '1'),
|
||||||
('details', '--relation', '1'),
|
('details', '--relation', '1'),
|
||||||
|
|||||||
Reference in New Issue
Block a user