Example #1
0
def test_get_import_style_intern(monkeypatch):
    config = Configuration(None, DEFCFG_DIR)

    monkeypatch.setenv('NOMINATIM_IMPORT_STYLE', 'street')

    expected = DEFCFG_DIR / 'import-street.style'

    assert config.get_import_style_file() == expected
Example #2
0
def test_get_import_style_intern(monkeypatch, value):
    config = Configuration(None, DEFCFG_DIR)

    monkeypatch.setenv('NOMINATIM_IMPORT_STYLE', value)

    assert str(config.get_import_style_file()) == value