Skip to content

Commit

Permalink
fix: test_acknowledge_event -> user_id instead of access_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Lenzi committed Aug 22, 2023
1 parent 906874e commit 6d67f43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tests/routes/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ async def test_acknowledge_event(
if response.status_code // 100 == 2:
updated_event = await get_entry(test_db, db.events, event_id)
updated_event = dict(**updated_event)
user_id = next(item["id"] for item in USER_TABLE if item["access_id"] == ACCESS_TABLE[access_idx]["id"])
assert updated_event["is_acknowledged"]
assert updated_event["acknowledged_by"] == ACCESS_TABLE[access_idx]["id"]
assert updated_event["acknowledged_by"] == user_id
assert utc_dt < updated_event["acknowledged_ts"] < datetime.utcnow()


Expand Down

0 comments on commit 6d67f43

Please sign in to comment.