mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 19:07:58 +00:00
remove automatic setup of tokenizer directory
ICU tokenizer doesn't need any extra data anymore, so it doesn't make sense to create a directory which then remains empty. If a tokenizer needs such a directory in the future, it needs to create it on its own and make sure to handle the situation correctly where no project directory is used at all.
This commit is contained in:
@@ -39,12 +39,9 @@ def test_config(project_env, tmp_path):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def tokenizer_factory(dsn, tmp_path, property_table,
|
||||
sql_preprocessor, place_table, word_table):
|
||||
(tmp_path / 'tokenizer').mkdir()
|
||||
|
||||
def tokenizer_factory(dsn, property_table, sql_preprocessor, place_table, word_table):
|
||||
def _maker():
|
||||
return icu_tokenizer.create(dsn, tmp_path / 'tokenizer')
|
||||
return icu_tokenizer.create(dsn)
|
||||
|
||||
return _maker
|
||||
|
||||
|
||||
Reference in New Issue
Block a user