From 960f34c202cc3c0e557419e5bd0de0d4b4d57f90 Mon Sep 17 00:00:00 2001 From: rahehl <7577984+RaHehl@users.noreply.github.com> Date: Sat, 16 Nov 2024 00:32:09 +0100 Subject: [PATCH] test(tests): add assertions for event end time and last NFC card scanned --- tests/test_api_ws.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_api_ws.py b/tests/test_api_ws.py index e2854a65..e1a82a17 100644 --- a/tests/test_api_ws.py +++ b/tests/test_api_ws.py @@ -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