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
@@ -61,7 +61,7 @@ def test_an_id_from_another_unit_is_refused_before_any_io():
|
||||
|
||||
def test_a_minimate_download_goes_through_the_series3_adapter():
|
||||
dl = access(s3=[FakeMiniMateClient()]).download_event(ADDR, "BE18193", "BE18193:01110000:-")
|
||||
assert dl.series == 3 and dl.a5_frames == ["frame"]
|
||||
assert dl.series == 3 and dl.a5_frames and all(f.sub == 0xA5 for f in dl.a5_frames)
|
||||
|
||||
|
||||
def test_a_ring_mid_download_releases_the_line_and_downloads_nothing():
|
||||
|
||||
Reference in new issue
Block a user