X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2abe9e6fd99bb270c9de05f19701283a08c3b2f5..19eb4d91a09024db4fdc9dbc044e63530d068698:/test/python/config/test_config_load_module.py?ds=sidebyside diff --git a/test/python/config/test_config_load_module.py b/test/python/config/test_config_load_module.py index 7bc91fd7..c2912180 100644 --- a/test/python/config/test_config_load_module.py +++ b/test/python/config/test_config_load_module.py @@ -1,8 +1,8 @@ -# SPDX-License-Identifier: GPL-2.0-only +# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2022 by the Nominatim developer community. +# Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test for loading extra Python modules. @@ -12,7 +12,7 @@ import sys import pytest -from nominatim.config import Configuration +from nominatim_db.config import Configuration @pytest.fixture def test_config(src_dir, tmp_path): @@ -27,12 +27,12 @@ def test_config(src_dir, tmp_path): def test_load_default_module(test_config): - module = test_config.load_plugin_module('version', 'nominatim') + module = test_config.load_plugin_module('version', 'nominatim_db') assert isinstance(module.NOMINATIM_VERSION, tuple) def test_load_default_module_with_hyphen(test_config): - module = test_config.load_plugin_module('place-info', 'nominatim.data') + module = test_config.load_plugin_module('place-info', 'nominatim_db.data') assert isinstance(module.PlaceInfo, object)