meshcore_py/tests/unit
Matthew Wolter f6bc0908b0 G4: add verification tests for F04, NEW-A, F18, M06, F16, F17, N04
10 new tests in tests/unit/test_g4_transport_symmetry.py covering all
G4 findings:

- test_g4_tcp_send_write_error_fires_disconnect (F04): TCP write
  OSError fires _disconnect_callback.
- test_g4_serial_send_no_transport_fires_disconnect (NEW-A): serial
  send on None transport fires _disconnect_callback.
- test_g4_serial_send_write_error_fires_disconnect (F04): serial write
  OSError fires _disconnect_callback.
- test_g4_ble_send_no_client_fires_disconnect (F04): BLE send with no
  client fires _disconnect_callback.
- test_g4_serial_connect_timeout (F18): connect raises TimeoutError
  when connection_made never fires.
- test_g4_tcp_oversize_frame_empty_data_returns (M06): oversize header
  with empty trailing data returns without dispatch.
- test_g4_serial_oversize_frame_empty_data_returns (M06): same for
  serial transport.
- test_g4_tcp_receive_count_per_frame_not_per_segment (N04): 3 TCP
  segments carrying 1 frame yield _receive_count == 1.
- test_g4_tcp_multiple_frames_count_correctly (N04): 2 complete frames
  yield _receive_count == 2.

F16 and F17 are covered by the updated pre-existing test in
tests/test_ble_pin_pairing.py (committed with F17).

Refs: Forensics report findings F04, NEW-A, F18, M06, N04
2026-04-11 20:25:52 -07:00
..
test_commands.py Fix 16 failing unit tests to match current source behavior 2026-04-05 18:38:16 -07:00
test_events.py feat: Refactor binary commands and apply BLE fixes 2025-08-05 15:31:54 -04:00
test_g4_transport_symmetry.py G4: add verification tests for F04, NEW-A, F18, M06, F16, F17, N04 2026-04-11 20:25:52 -07:00
test_lpp_parsing.py Fix 16 failing unit tests to match current source behavior 2026-04-05 18:38:16 -07:00
test_path_discovery_response.py Fix three byte path packets 2026-03-18 17:31:17 -07:00
test_private_key_export.py Fix 16 failing unit tests to match current source behavior 2026-04-05 18:38:16 -07:00
test_reader.py Fix 16 failing unit tests to match current source behavior 2026-04-05 18:38:16 -07:00
test_serial_connection.py Use the frame start once we've found it 2026-03-21 21:08:04 -07:00