From 65d3753295065f80157ed8050cfa726348f7803e Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 6 Dec 2023 23:14:40 +0100 Subject: [PATCH] add new main, run abratest through cli --- main.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..f91d0e3 --- /dev/null +++ b/main.py @@ -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", + ] +)