MCPcopy Create free account
hub / github.com/TheMariday/marimapper / test_capture_sequence_correctness

Function test_capture_sequence_correctness

test/test_capture_sequence.py:37–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_capture_sequence_correctness():
38 output_dir_full = get_test_dir("scan")
39
40 for view_index in range(9):
41
42 filepath = Path(output_dir_full, f"led_map_2d_{view_index:04}.csv")
43
44 leds = load_detections(filepath, view_index)
45
46 if view_index in [0, 4, 8]:
47 assert ( # If it's a straight on view, there should be 9 points
48 len(leds) == 9
49 )
50 else:
51 assert len(leds) == 15 # If it's a diagonal-ish view, then we see 15 points

Callers

nothing calls this directly

Calls 2

get_test_dirFunction · 0.90
load_detectionsFunction · 0.90

Tested by

no test coverage detected