X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2bab0ca060ff224091b20a0ac808a3febaba04b1..c4a726c96b4458b19a45f17b810fafe808c35605:/test/python/config/test_config.py diff --git a/test/python/config/test_config.py b/test/python/config/test_config.py index bb649d23..8f90b5da 100644 --- a/test/python/config/test_config.py +++ b/test/python/config/test_config.py @@ -10,8 +10,8 @@ Test for loading dotenv configuration. from pathlib import Path import pytest -from nominatim_core.config import Configuration, flatten_config_list -from nominatim_core.errors import UsageError +from nominatim_db.config import Configuration, flatten_config_list +from nominatim_db.errors import UsageError @pytest.fixture def make_config(): @@ -140,8 +140,8 @@ def test_get_bool(make_config, monkeypatch, value, result): def test_get_bool_empty(make_config): config = make_config() - assert config.DATABASE_MODULE_PATH == '' - assert not config.get_bool('DATABASE_MODULE_PATH') + assert config.TOKENIZER_CONFIG == '' + assert not config.get_bool('TOKENIZER_CONFIG') @pytest.mark.parametrize("value,result", [('0', 0), ('1', 1), @@ -167,10 +167,10 @@ def test_get_int_bad_values(make_config, monkeypatch, value): def test_get_int_empty(make_config): config = make_config() - assert config.DATABASE_MODULE_PATH == '' + assert config.TOKENIZER_CONFIG == '' with pytest.raises(UsageError): - config.get_int('DATABASE_MODULE_PATH') + config.get_int('TOKENIZER_CONFIG') @pytest.mark.parametrize("value,outlist", [('sd', ['sd']), @@ -193,8 +193,8 @@ def test_get_str_list_empty(make_config): def test_get_path_empty(make_config): config = make_config() - assert config.DATABASE_MODULE_PATH == '' - assert not config.get_path('DATABASE_MODULE_PATH') + assert config.TOKENIZER_CONFIG == '' + assert not config.get_path('TOKENIZER_CONFIG') def test_get_path_absolute(make_config, monkeypatch):