X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/17cb59efbd5ebec4ee44cf56999e443a7993b050..c495ce097916063327460cfa2cc6e3fcccac4df2:/test/python/test_cli.py?ds=sidebyside diff --git a/test/python/test_cli.py b/test/python/test_cli.py index 0d295f1c..eb0ee584 100644 --- a/test/python/test_cli.py +++ b/test/python/test_cli.py @@ -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