diff --git a/tests/data/basic_example.json b/tests/data/basic_example.json index 2c08512bb..35f515bc4 100644 --- a/tests/data/basic_example.json +++ b/tests/data/basic_example.json @@ -236,7 +236,7 @@ "placeholder": "", "show": true, "multiline": false, - "value": "abc", + "value": null, "password": true, "name": "openai_api_key", "display_name": "OpenAI API Key", diff --git a/tests/test_user.py b/tests/test_user.py index 9c4153316..c0a020554 100644 --- a/tests/test_user.py +++ b/tests/test_user.py @@ -213,7 +213,9 @@ def test_normal_user_cant_delete_user(client, test_user, logged_in_headers): # If you still want to test the superuser endpoint -def test_add_super_user_for_testing_purposes_delete_me_before_merge_into_dev(client): +def test_add_super_user_for_testing_purposes_delete_me_before_merge_into_dev( + client, +): response = client.post("/api/v1/super_user") assert response.status_code == 200 assert response.json()["username"] == "superuser" diff --git a/tests/utils.py b/tests/utils.py index a4bae9863..e69de29bb 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,27 +0,0 @@ -import time - - -def run_post(client, flow_id, headers, post_data): - response = client.post( - f"api/v1/process/{flow_id}", - headers=headers, - json=post_data, - ) - assert response.status_code == 200, response.json() - return response.json() - - -# Helper function to poll task status -def poll_task_status(client, headers, task_id, max_attempts=20, sleep_time=1): - for _ in range(max_attempts): - task_status_response = client.get( - f"api/v1/task/{task_id}/status", - headers=headers, - ) - if ( - task_status_response.status_code == 200 - and task_status_response.json()["status"] == "SUCCESS" - ): - return task_status_response.json() - time.sleep(sleep_time) - return None # Return None if task did not complete in time