X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b2f8fb620175157d97254a4163f6c5bba62199db..0b2abfb11570de36fd73a6c43c333aeb78d42a97:/test/python/test_cli.py diff --git a/test/python/test_cli.py b/test/python/test_cli.py index cde84759..702a4b74 100644 --- a/test/python/test_cli.py +++ b/test/python/test_cli.py @@ -215,6 +215,14 @@ def test_replication_update_continuous_no_change(monkeypatch, temp_db_conn, stat assert sleep_mock.last_args[0] == 60 +def test_serve_command(monkeypatch): + func = MockParamCapture() + monkeypatch.setattr(nominatim.cli, 'run_php_server', func) + + call_nominatim('serve') + + assert func.called == 1 + @pytest.mark.parametrize("params", [ ('search', '--query', 'new'), ('reverse', '--lat', '0', '--lon', '0'),