import pytest
from nominatim.config import Configuration
+from nominatim.errors import UsageError
DEFCFG_DIR = Path(__file__) / '..' / '..' / '..' / 'settings'
monkeypatch.setenv('NOMINATIM_FOOBAR', value)
- with pytest.raises(ValueError):
+ with pytest.raises(UsageError):
config.get_int('FOOBAR')
assert config.DATABASE_MODULE_PATH == ''
- with pytest.raises(ValueError):
+ with pytest.raises(UsageError):
config.get_int('DATABASE_MODULE_PATH')