]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/indexer/test_indexing.py
move country names into separate include files
[nominatim.git] / test / python / indexer / test_indexing.py
index 4c9d940d09b1c2a0a0cddbe78383c34c9251af53..e303f381e0cea86d3559993942f7f99d3698911d 100644 (file)
@@ -1,3 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# This file is part of Nominatim. (https://nominatim.org)
+#
+# Copyright (C) 2022 by the Nominatim developer community.
+# For a full list of authors see the git log.
 """
 Tests for running the indexing.
 """
 """
 Tests for running the indexing.
 """
@@ -145,9 +151,8 @@ def test_db(temp_db_conn):
 
 
 @pytest.fixture
 
 
 @pytest.fixture
-def test_tokenizer(tokenizer_mock, def_config, tmp_path):
-    def_config.project_dir = tmp_path
-    return factory.create_tokenizer(def_config)
+def test_tokenizer(tokenizer_mock, project_env):
+    return factory.create_tokenizer(project_env)
 
 
 @pytest.mark.parametrize("threads", [1, 15])
 
 
 @pytest.mark.parametrize("threads", [1, 15])