meshcore_py/tests/unit
Matthew Wolter 75c4a58841 Fix test fixture to resolve events immediately instead of blocking
The mock_dispatcher fixture's fake_subscribe recorded event handlers
but never called them, causing asyncio.wait() to block for the full
DEFAULT_TIMEOUT (15s) on every test that passes expected_events to
send(). With 28 affected tests, the suite wasted ~8 minutes on dead
waits and required an undocumented pytest-timeout plugin to complete.

Add call_soon to the default fake_subscribe so futures resolve on the
next event loop iteration, matching the pattern already used by
setup_event_response(). Override with a non-resolving mock in
test_send_timeout to preserve timeout path coverage.

Suite now completes in <1 second with no --timeout flag.
2026-04-12 06:57:53 -07:00
..
test_commands.py Fix test fixture to resolve events immediately instead of blocking 2026-04-12 06:57:53 -07:00
test_events.py feat: Refactor binary commands and apply BLE fixes 2025-08-05 15:31:54 -04: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