Skip to content

Commit d41c481

Browse files
Dasha SierraDasha Sierra
authored andcommitted
Zulu is now represented by a Z
Zulu is now represented by a Z
1 parent 027d3f2 commit d41c481

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tests/custom_activity/test_server.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
from atmosphere.custom_activity.server import server
77

8+
import json
9+
810

911
@fixture(name="default_prediction")
1012
def fixture_default_prediction():
@@ -15,7 +17,7 @@ def fixture_default_prediction():
1517
"id": "c22d6e7a-fd33-4f60-8e5a-0a0ab9bb1da1",
1618
"name": "kana activity",
1719
"description": "Kana mock activity",
18-
"start_date": "2020-11-06T03:17:29.600944+00:00",
20+
"start_date": "2020-11-06T03:17:29.600944Z",
1921
"end_date": None,
2022
"status": "running",
2123
"current_category": "deployment",
@@ -26,7 +28,7 @@ def fixture_default_prediction():
2628
"name": "kana",
2729
"description": "Kana mock",
2830
"category": "deployment",
29-
"start_date": "2020-11-06T03:17:29.600944+00:00",
31+
"start_date": "2020-11-06T03:17:29.600944Z",
3032
"end_date": None,
3133
"status": "running",
3234
},
@@ -84,15 +86,12 @@ def test_get_prediction_response_payload_formats(test_client: TestClient):
8486
def test_format_prediction_payload_response(
8587
test_client: TestClient, default_prediction: dict
8688
):
87-
resp = test_client.post(
88-
"/format-prediction-payload-response",
89+
resp = test_client.request(
90+
method="post",
91+
url="/format-prediction-payload-response",
8992
params={"payload_format": "test"},
9093
json=default_prediction,
9194
)
92-
print("resp.json:::::::::::::::")
93-
print(resp.json())
94-
print("default_prediction::::::")
95-
print(default_prediction)
9695
assert resp.status_code == 200
9796
assert resp.json() == default_prediction
9897

0 commit comments

Comments
 (0)