Spaces:
Sleeping
Sleeping
Phase 11 fixup: deploy smoke /tasks count 3 -> 6
Browse files- tests/test_deploy_smoke.py +10 -4
tests/test_deploy_smoke.py
CHANGED
|
@@ -36,11 +36,17 @@ def test_deployed_tasks_list() -> None:
|
|
| 36 |
r = httpx.get(f"{DEPLOY_URL}/tasks", timeout=30.0)
|
| 37 |
assert r.status_code == 200
|
| 38 |
body = r.json()
|
| 39 |
-
assert body.get("count") ==
|
| 40 |
task_ids = [t["task_id"] for t in body["tasks"]]
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
@REQUIRES_DEPLOY
|
|
|
|
| 36 |
r = httpx.get(f"{DEPLOY_URL}/tasks", timeout=30.0)
|
| 37 |
assert r.status_code == 200
|
| 38 |
body = r.json()
|
| 39 |
+
assert body.get("count") == 6
|
| 40 |
task_ids = [t["task_id"] for t in body["tasks"]]
|
| 41 |
+
for required in (
|
| 42 |
+
"E1_onboard_new_hire",
|
| 43 |
+
"E2_meeting_invite_blast",
|
| 44 |
+
"E3_customer_lookup",
|
| 45 |
+
"M1_customer_escalation",
|
| 46 |
+
"M2_weekly_report",
|
| 47 |
+
"M3_event_cleanup",
|
| 48 |
+
):
|
| 49 |
+
assert required in task_ids, f"{required} missing from /tasks response"
|
| 50 |
|
| 51 |
|
| 52 |
@REQUIRES_DEPLOY
|