mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
need test database for analysing cli test
This commit is contained in:
@@ -88,7 +88,7 @@ def test_admin_command_legacy(monkeypatch, params):
|
|||||||
assert mock_run_legacy.called == 1
|
assert mock_run_legacy.called == 1
|
||||||
|
|
||||||
@pytest.mark.parametrize("func, params", [('analyse_indexing', ('--analyse-indexing', ))])
|
@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()
|
mock = MockParamCapture()
|
||||||
monkeypatch.setattr(nominatim.tools.admin, func, mock)
|
monkeypatch.setattr(nominatim.tools.admin, func, mock)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user