Skip to content

Commit

Permalink
test(tests): add assertions for event end time and last NFC card scanned
Browse files Browse the repository at this point in the history
  • Loading branch information
RaHehl committed Nov 15, 2024
1 parent 9a9b9ce commit 960f34c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_api_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ def get_camera():
assert event.thumbnail_id == f"e-{expected_event_id}"
assert event.heatmap_id == f"e-{expected_event_id}"
assert event.start == (now - timedelta(seconds=30))
assert event.end == now
assert camera.last_nfc_card_scanned == event.start

for channel in camera.channels:
assert channel._api is not None
Expand Down

0 comments on commit 960f34c

Please sign in to comment.