Skip to content

Commit

Permalink
test: add test coverage for nfc and fingerprint fields in none case
Browse files Browse the repository at this point in the history
  • Loading branch information
RaHehl committed Nov 17, 2024
1 parent 22f68f9 commit cb74b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_api_polling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions tests/test_api_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit cb74b11

Please sign in to comment.