From a7f489bb6b544917700d296bb62c562a801a9762 Mon Sep 17 00:00:00 2001 From: Liam Lloyd-Tucker Date: Tue, 13 Jan 2026 11:50:43 -0800 Subject: [PATCH] Update Permanent dev URL We have lately be trialing moving the marketing site to WPEngine in our dev environment. This has required updating the URL of the web app. This has caused these tests to fail on dev for a while, so this commit updates the tests to handle the new dev URL. --- permanent_upload/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/permanent_upload/__main__.py b/permanent_upload/__main__.py index 0aec21f..72a9fac 100644 --- a/permanent_upload/__main__.py +++ b/permanent_upload/__main__.py @@ -49,7 +49,9 @@ def main(environment, path): timeout = 60 print(f"Current timeout is {timeout} seconds") - api = PermanentAPI(f"https://{environment}.permanent.org") + api = PermanentAPI( + f"https://{"app.dev" if environment == "dev" else environment}.permanent.org" + ) createaccount_result = api.create_account(email, password) api.create_archive("Functional Filetype Test", "type.archive.person") login_result = api.login(email, password) @@ -58,7 +60,6 @@ def main(environment, path): api.get_account(createaccount_result.response["AccountVO"]["accountId"]) api.logged_in() parent_folder_id, parent_folder_link_id = api.get_folder_info() - files = get_file_list(path) results = [] headers = ["File Name", "Type", "Status", "File Formats", "Time"]