From 50a050114712b127a342749fe2934e84b3c66e4f Mon Sep 17 00:00:00 2001 From: serversdown Date: Thu, 29 Oct 2026 23:58:52 -0400 Subject: [PATCH] test(sfm): a live MiniMate histogram is labelled Histogram (#8, via #41) K441LTON.900 -- a direct download's name, with no type letter -- read 'Waveform' before #41 came in with a1d2b61 (verified failing first), and 'Histogram' from STRT[18] after. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44 --- tests/test_event_ingest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_event_ingest.py b/tests/test_event_ingest.py index 5257762..1d4a5d3 100644 --- a/tests/test_event_ingest.py +++ b/tests/test_event_ingest.py @@ -375,3 +375,12 @@ def test_a_repeat_live_histogram_a_second_off_its_file_adds_nothing(sdm): def test_a_name_that_is_not_blastwares_matches_nothing(sdm): store, db = sdm assert db.find_event_by_blastware_name("BE9441", "imported.bw") is None + + +def test_a_live_histogram_is_labelled_a_histogram(sdm): + # #41 (the record type from STRT[18], not the name): a direct download's name, + # K441LTON.900, carries no type letter, so the bytes decide. + store, db = sdm + out = persist_download(_hist_download("K441LTON.900", "0111f210", datetime.datetime(2026, 10, 26, 17, 0, 36)), + store=store, db=db) + assert db.get_event(out.db_event_id)["record_type"] == "Histogram"