test: the Series-3 fake downloads a real event -- c32a9e7 was pushed with 4 tests failing
c32a9e7 made the download check read the 5A body; the Series-3 fake handed
back placeholder frames (['frame']), so 4 plumbing tests in
test_device_access_s3_events.py and test_device_access_event_dispatch.py
failed with "'str' object has no attribute 'data'" -- and that commit was
pushed without the failure set being read. The fake's one-event download now
carries what a real one does: BE9441 event 1's recorded frames, their decoded
waveform and the unit's own peaks for it. Those tests now see verified=True
on a whole event. Suite back to the 16 known fixture failures.
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
c32a9e7851
commit
a7214c50de
3 files changed
+27
-3
No files matched your search
@@ -70,8 +70,9 @@ def test_listing_refuses_a_different_unit():
|
||||
def test_download_returns_the_event_its_frames_and_the_settings():
|
||||
fake = FakeMiniMateClient()
|
||||
dl = adapter(fake).download_event(TCP, "BE18193", FIRST, "20261001080000")
|
||||
assert (dl.series, dl.event_id, dl.verified) == (3, "BE18193:01110000:20261001080000", None)
|
||||
assert dl.event is fake.events[0] and dl.a5_frames == ["frame"]
|
||||
assert (dl.series, dl.event_id, dl.verified) == (3, "BE18193:01110000:20261001080000", True)
|
||||
assert dl.event is fake.events[0] and dl.a5_frames is fake.events[0]._a5_frames
|
||||
assert dl.a5_frames and all(f.sub == 0xA5 for f in dl.a5_frames)
|
||||
assert dl.compliance is fake.compliance and dl.filename.startswith("T193")
|
||||
assert dl.timestamp == datetime.datetime(2026, 10, 1, 8, 0, 0)
|
||||
|
||||
|
||||
Reference in new issue
Block a user