authentik setup and tracing #2
3 changed files with 9 additions and 6 deletions
3
main.py
3
main.py
|
|
@ -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
7
src/utils.py
Normal 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")
|
||||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue