X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c314a3092c5b51c7782015f6fa9ac093b46fa174..c2aa7a9b439740c2ac6b5f1d532c2375a113e921:/test/python/cli/test_cmd_api.py diff --git a/test/python/cli/test_cmd_api.py b/test/python/cli/test_cmd_api.py index 811eadfe..1c0750d1 100644 --- a/test/python/cli/test_cmd_api.py +++ b/test/python/cli/test_cmd_api.py @@ -13,6 +13,15 @@ import pytest import nominatim_db.clicmd.api import nominatim_api as napi +@pytest.mark.parametrize('call', ['search', 'reverse', 'lookup', 'details', 'status']) +def test_list_format(cli_call, call): + assert 0 == cli_call(call, '--list-formats') + + +@pytest.mark.parametrize('call', ['search', 'reverse', 'lookup', 'details', 'status']) +def test_bad_format(cli_call, call): + assert 1 == cli_call(call, '--format', 'rsdfsdfsdfsaefsdfsd') + class TestCliStatusCall: