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", ] )