From cb74b116e2d6a51e16586416b08603fec5619e50 Mon Sep 17 00:00:00 2001 From: rahehl <7577984+RaHehl@users.noreply.github.com> Date: Sun, 17 Nov 2024 18:25:04 +0100 Subject: [PATCH] test: add test coverage for nfc and fingerprint fields in none case --- tests/test_api_polling.py | 4 ++-- tests/test_api_ws.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_api_polling.py b/tests/test_api_polling.py index 0bc7a15b..56f111ab 100644 --- a/tests/test_api_polling.py +++ b/tests/test_api_polling.py @@ -210,7 +210,7 @@ def get_camera(): _reset_events(camera) - assert camera.last_smart_detect is None - assert camera.last_nfc_card_scanned is None + assert camera.last_smart_detect_event is None + assert camera.last_nfc_card_scanned_event is None assert camera.last_motion_event is None assert camera.last_fingerprint_identified_event is None diff --git a/tests/test_api_ws.py b/tests/test_api_ws.py index c5a2d24e..82d5efc0 100644 --- a/tests/test_api_ws.py +++ b/tests/test_api_ws.py @@ -338,7 +338,7 @@ def get_camera(): camera = get_camera() - assert camera.last_nfc_card_scanned is None + assert camera.last_nfc_card_scanned_event is None msg = MagicMock() msg.data = packet.pack_frames() @@ -411,7 +411,7 @@ def get_camera(): camera = get_camera() - assert camera.last_fingerprint_identified is None + assert camera.last_fingerprint_identified_event is None msg = MagicMock() msg.data = packet.pack_frames()