]> git.openstreetmap.org Git - nominatim.git/commitdiff
extend API unit tests
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 1 Dec 2021 19:48:29 +0000 (20:48 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 1 Dec 2021 19:48:29 +0000 (20:48 +0100)
test/python/cli/test_cli.py

index f4878b6186feaab16237a5169a528da074f5fb10..dbe17083470fc051a2f9eb350565ab82278d2780 100644 (file)
@@ -93,9 +93,12 @@ class TestCli:
         assert func.called == 1
 
 
-@pytest.mark.parametrize("params", [('search', '--query', 'new'),
-                                    ('reverse', '--lat', '0', '--lon', '0'),
-                                    ('lookup', '--id', 'N1'),
+@pytest.mark.parametrize("params", [('search', '--query', 'new', '--polygon-output', 'svg', '--polygon-threshold', '0.1'),
+                                    ('search', '--city', 'Berlin', '--format', 'xml', '--lang', 'de'),
+                                    ('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', '--way', '1'),
                                     ('details', '--relation', '1'),