]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_cli.py
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / test / python / test_cli.py
index 0d295f1c9df7b73665fc8be9e7f69421dd3f42be..eb0ee58487b5917112824ad4b0ce2940d5d21f3a 100644 (file)
@@ -172,9 +172,9 @@ def test_index_command(mock_func_factory, temp_db_cursor, params, do_bnds, do_ra
     assert rank_mock.called == do_ranks
 
 def test_special_phrases_command(temp_db, mock_func_factory):
-    func = mock_func_factory(nominatim.clicmd.special_phrases, 'import_from_wiki')
+    func = mock_func_factory(nominatim.clicmd.special_phrases.SpecialPhrasesImporter, 'import_from_wiki')
 
-    call_nominatim('import-special-phrases', '--from-wiki')
+    call_nominatim('special-phrases', '--import-from-wiki')
 
     assert func.called == 1