FreeDATA/tests
Steve Pinkham f19c775a3a fix: emit arq-session-finished on IRS success again (lost April 2024)
The IRS success branch set ENDED and returned without the
session-finished event, while abort, failure and the ISS success path
all send one. A successful inbound raw transfer was invisible to every
websocket/REST consumer, and the received payload was dropped with it
(handle_raw returns the data into a call chain that discards it).

c2388a65 emitted exactly this event, data= included; it vanished by
ef18f4cc without that commit's IRS diff touching the lines, so this
looks like a merge casualty rather than a decision. Restore the event
and add a regression test: one finished event with success=True,
payload round-trips through the base64 data field.

The original also pushed session statistics gated on enable_stats, but
that key is no longer in the config schema (config.py STATION), so the
strict lookup raises KeyError; the two existing stats sites in the
failure and abort paths have the same latent problem. Restoring just
the event here; the stats question is worth its own look.

No setARQ(False) here: dispatch() already clears busy on this path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-22 18:30:05 -04:00
..
test_arq_session.py fix: emit arq-session-finished on IRS success again (lost April 2024) 2026-07-22 18:30:05 -04:00
test_config.py Removed unused imports 2025-11-13 20:12:55 +01:00
test_data_frame_factory.py Fixed other module's paths 2026-01-10 20:27:19 +01:00
test_data_type_handler.py Increased max line length to 120, reformatted everything 2026-01-10 19:11:26 +01:00
test_message_database.py Increased max line length to 120, reformatted everything 2026-01-10 19:11:26 +01:00
test_message_p2p.py Increased max line length to 120, reformatted everything 2026-01-10 19:11:26 +01:00
test_message_protocol.py Increased max line length to 120, reformatted everything 2026-01-10 19:11:26 +01:00
test_norm_protocol.py Fixed other module's paths 2026-01-10 20:27:19 +01:00
test_p2p_connection.py Increased max line length to 120, reformatted everything 2026-01-10 19:11:26 +01:00
test_protocols.py Increased max line length to 120, reformatted everything 2026-01-10 19:11:26 +01:00
test_server.py Fixed ruff rule E401 and E402 2025-11-13 19:55:53 +01:00