From 966c38acd0e925a40d1bb7ef4f1a31e8f9f3ecd2 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Fri, 22 Dec 2023 12:50:07 +0545 Subject: [PATCH] Added black formatting on test_api --- tests/test_API.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_API.py b/tests/test_API.py index 9331b0eb..eac6a670 100644 --- a/tests/test_API.py +++ b/tests/test_API.py @@ -526,9 +526,9 @@ def test_snapshot_bind_zip(): ), f"Task did not complete successfully after {max_attempts} attempts" - ## Snapshot Plain + def test_snapshot_plain(): response = client.post( "/v1/snapshot/plain/", @@ -552,6 +552,7 @@ def test_snapshot_plain(): ## Stats + def test_stats_endpoint_custom_polygon(): headers = {"access-token": access_token} payload = { @@ -595,6 +596,7 @@ def test_stats_endpoint_iso3(): ## HDX + def test_hdx_submit_normal_iso3(): headers = {"access-token": access_token} payload = { @@ -1085,8 +1087,9 @@ def test_hdx_submit_normal_iso3_upload_option(): ), f"Task did not complete successfully after {max_attempts} attempts" -## Tasks connection - +## Tasks connection + + def test_worker_connection(): response = client.get("/v1/tasks/ping/'") assert response.status_code == 200