add new main, run abratest through cli

This commit is contained in:
Daniel 2023-12-06 23:14:40 +01:00
parent cb37e4b023
commit 65d3753295

21
main.py Normal file
View file

@ -0,0 +1,21 @@
import json
import os
import subprocess
from pathlib import Path
# --------------------- load credentials to env variables -------------------- #
cred_file = Path("credentials.json")
with open(cred_file, "r") as f:
CREDENTIALS = json.load(f)
for key, value in CREDENTIALS.items():
os.environ[key] = value
subprocess.run(
[
"pytest-abra",
# "--debug",
]
)