+def test_special_phrases_csv_command(temp_db, mock_func_factory, tokenizer_mock):
+ func = mock_func_factory(nominatim.clicmd.special_phrases.SPImporter, 'import_phrases')
+ testdata = Path('__file__') / '..' / '..' / 'testdb'
+ csv_path = str((testdata / 'full_en_phrases_test.csv').resolve())
+ call_nominatim('special-phrases', '--import-from-csv', csv_path)
+
+ assert func.called == 1
+