]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_tools_database_import.py
add tests for different scripts
[nominatim.git] / test / python / test_tools_database_import.py
index e2852acb45adae34d5761b0e70ac6636341c9ea2..1311ef5dc052dc3168f5ba7e9789a639adcce61c 100644 (file)
@@ -187,7 +187,7 @@ def test_truncate_database_tables(temp_db_conn, temp_db_cursor, table_factory):
 @pytest.mark.parametrize("threads", (1, 5))
 def test_load_data(dsn, src_dir, place_row, placex_table, osmline_table, word_table,
                    temp_db_cursor, threads):
-    for func in ('make_keywords', 'getorcreate_housenumber_id', 'make_standard_name'):
+    for func in ('precompute_words', 'getorcreate_housenumber_id', 'make_standard_name'):
         temp_db_cursor.execute("""CREATE FUNCTION {} (src TEXT)
                                   RETURNS TEXT AS $$ SELECT 'a'::TEXT $$ LANGUAGE SQL
                                """.format(func))