authentik setup and tracing #2

Merged
dan merged 69 commits from working-setup into dev 2023-11-27 17:01:47 +01:00
3 changed files with 9 additions and 6 deletions
Showing only changes of commit 23b81317c5 - Show all commits

View file

@ -1,6 +1,7 @@
from src.utils import get_session_id
from src.wrapper import ENV_FILES, Wrapper
session_id = Wrapper.get_session_id()
session_id = get_session_id()
wrapper = Wrapper(ENV_FILES, session_id=session_id)
wrapper.setup_test()
wrapper.run_test()

7
src/utils.py Normal file
View file

@ -0,0 +1,7 @@
from datetime import datetime
@staticmethod
def get_session_id() -> str:
current_datetime = datetime.now()
return current_datetime.strftime("%Y-%m-%d-%H-%M-%S")

View file

@ -65,8 +65,3 @@ class Wrapper:
"""checks if file exist for every file in list"""
for env_file in env_files:
assert env_file.is_file()
@staticmethod
def get_session_id() -> str:
current_datetime = datetime.now()
return current_datetime.strftime("%Y-%m-%d-%H-%M-%S")