add output dir as argument to wrapper
This commit is contained in:
parent
349f2a510a
commit
26f5b34279
2 changed files with 7 additions and 6 deletions
5
main.py
5
main.py
|
|
@ -10,13 +10,12 @@ ENV_FILES = [
|
|||
# Path("envfiles/blog.test.dev.local-it.cloud.env"), # wordpress
|
||||
]
|
||||
|
||||
TESTS_DIR = Path("./tests").resolve()
|
||||
OUTPUT_DIR = Path("./test-output").resolve()
|
||||
|
||||
|
||||
# Set environment variables
|
||||
|
||||
# os.environ["PWDEBUG"] = "1"
|
||||
os.environ["TESTS_DIR"] = str(TESTS_DIR)
|
||||
|
||||
cred_file = Path("credentials.json")
|
||||
with open(cred_file, "r") as f:
|
||||
|
|
@ -27,6 +26,6 @@ os.environ["ADMIN_PASS"] = CREDENTIALS["admin_pass"]
|
|||
|
||||
|
||||
session_id = get_session_id()
|
||||
wrapper = Wrapper(ENV_FILES, session_id=session_id)
|
||||
wrapper = Wrapper(ENV_FILES, output_dir=OUTPUT_DIR, session_id=session_id)
|
||||
wrapper.setup_test()
|
||||
wrapper.run_test()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue