refactor so that coordinator instance is available in runner instance (#8)
-> all program states available Reviewed-on: local-it-infrastructure/e2e_tests#8 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
f9c21c6e6b
commit
4c5a470a70
15 changed files with 74 additions and 53 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue