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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
a1d2b61f22
commit
50a0501147
1 file changed
+9
@@ -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"
|
||||
Reference in new issue
Block a user