X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4cb6dc01f382e9fb748efbe4517442af2274f210..a1f0fc1a10db6fe3b8c329b3899b211ea0b62079:/test/python/test_config.py?ds=inline diff --git a/test/python/test_config.py b/test/python/test_config.py index f9fefeb2..4578be13 100644 --- a/test/python/test_config.py +++ b/test/python/test_config.py @@ -7,6 +7,7 @@ import tempfile import pytest from nominatim.config import Configuration +from nominatim.errors import UsageError DEFCFG_DIR = Path(__file__) / '..' / '..' / '..' / 'settings' @@ -123,7 +124,7 @@ def test_get_int_bad_values(monkeypatch, value): monkeypatch.setenv('NOMINATIM_FOOBAR', value) - with pytest.raises(ValueError): + with pytest.raises(UsageError): config.get_int('FOOBAR') @@ -132,7 +133,7 @@ def test_get_int_empty(): assert config.DATABASE_MODULE_PATH == '' - with pytest.raises(ValueError): + with pytest.raises(UsageError): config.get_int('DATABASE_MODULE_PATH')