Skip to content

Commit e42410c

Browse files
committed
Update test_audit_flow.py
1 parent c2945a8 commit e42410c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/integration/test_audit_flow.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,11 @@ async def test_lists_task_events(
208208
kinds = {row["event_type"] for row in body["results"]}
209209
assert "task_locked" in kinds
210210
assert "task_unlocked" in kinds
211-
# The endpoint is task-scoped via `details.task_number`, so every row
212-
# should reference task 1.
211+
# The endpoint scopes by the `task_id` column; the task number is
212+
# echoed in `details` as `taskNumber` (camelCase, as emitted by the
213+
# task repository). Every row should reference task 1.
213214
for row in body["results"]:
214-
assert row["details"].get("task_number") == 1
215+
assert row["details"].get("taskNumber") == 1
215216

216217
async def test_unknown_task_404(
217218
self, client, as_lead, seeded_workspace_id, extra_user_factory

0 commit comments

Comments
 (0)