]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_cli.py
replace make serve with nominatim serve command
[nominatim.git] / test / python / test_cli.py
index cde84759b0f6fa89d322222c50355732cbcf40a5..702a4b742b0f8db81e96ed4b4880a2e1ff450c94 100644 (file)
@@ -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'),