()
| 35 | |
| 36 | |
| 37 | def 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 |
nothing calls this directly
no test coverage detected