refactor so that coordinator instance is available in runner instance #8

Merged
dan merged 16 commits from coordinator-in-runner into dev 2023-12-06 12:05:15 +01:00
Showing only changes of commit ef0d9c9415 - Show all commits

View file

@ -1,5 +1,7 @@
from pathlib import Path
from dotenv import dotenv_values
class DirManager:
"""Manages directories for the tests and should be used to create and find
@ -69,3 +71,8 @@ class DirManager:
@property
def RECIPES(self):
return self.recipes_dir
def get_config(self, search_string: str) -> dict[str, str]:
env_file = next(self.ENV_FILES.glob(f"*{search_string}*"))
config: dict[str, str] = dotenv_values(env_file) # type: ignore
return config