]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_cli.py
Merge pull request #2323 from darkshredder/disable-search-reverse-only
[nominatim.git] / test / python / test_cli.py
index 4b1a4c125c7a335915b44197395430d3d27a7d02..e8d2e0524308b20f275bfb17d40bcbfbc08df5e2 100644 (file)
@@ -278,6 +278,7 @@ def test_refresh_command(mock_func_factory, temp_db, command, func, tokenizer_mo
 
 def test_refresh_postcodes(mock_func_factory, temp_db, tokenizer_mock):
     func_mock = mock_func_factory(nominatim.tools.postcodes, 'update_postcodes')
 
 def test_refresh_postcodes(mock_func_factory, temp_db, tokenizer_mock):
     func_mock = mock_func_factory(nominatim.tools.postcodes, 'update_postcodes')
+    idx_mock = mock_func_factory(nominatim.indexer.indexer.Indexer, 'index_postcodes')
 
     assert 0 == call_nominatim('refresh', '--postcodes')
     assert func_mock.called == 1
 
     assert 0 == call_nominatim('refresh', '--postcodes')
     assert func_mock.called == 1