]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_cli.py
need test database for analysing cli test
[nominatim.git] / test / python / test_cli.py
index 334a9e78985773e174b1be9decb4faf37347d1e4..a8efd35670e63e0cc2744a2da097bd7db13f55f3 100644 (file)
@@ -26,6 +26,8 @@ def call_nominatim(*args):
                                    phplib_dir='lib-php',
                                    data_dir='.',
                                    phpcgi_path='/usr/bin/php-cgi',
+                                   sqllib_dir='lib-sql',
+                                   config_dir='settings',
                                    cli_args=args)
 
 class MockParamCapture:
@@ -86,7 +88,7 @@ def test_admin_command_legacy(monkeypatch, params):
     assert mock_run_legacy.called == 1
 
 @pytest.mark.parametrize("func, params", [('analyse_indexing', ('--analyse-indexing', ))])
-def test_admin_command_tool(monkeypatch, func, params):
+def test_admin_command_tool(temp_db, monkeypatch, func, params):
     mock = MockParamCapture()
     monkeypatch.setattr(nominatim.tools.admin, func, mock)