bdd: directly call utility scripts in lib

This removes the dependency on php-symfony-dotenv for the tests.
This commit is contained in:
Sarah Hoffmann
2021-01-14 18:19:22 +01:00
parent 9348fc5e15
commit 2f73bb3643
5 changed files with 20 additions and 9 deletions

View File

@@ -21,7 +21,8 @@ class Configuration:
def __init__(self, project_dir, config_dir):
self._config = dotenv_values(str((config_dir / 'env.defaults').resolve()))
self._config.update(dotenv_values(str((project_dir / '.env').resolve())))
if project_dir is not None:
self._config.update(dotenv_values(str((project_dir / '.env').resolve())))
def __getattr__(self, name):
name = 'NOMINATIM_' + name