(test_video_file, tmp_path)
| 53 | |
| 54 | @pytest.mark.release |
| 55 | def test_output_csv_roundtrip(test_video_file, tmp_path): |
| 56 | _video, scene_list = _detect(test_video_file) |
| 57 | csv_path = str(tmp_path / "scenes.csv") |
| 58 | with open(csv_path, "w", newline="") as f: |
| 59 | write_scene_list(f, scene_list, include_cut_list=False) |
| 60 | |
| 61 | with open(csv_path) as f: |
| 62 | rows = list(csv.DictReader(f)) |
| 63 | assert len(rows) == len(scene_list) |
| 64 | # write_scene_list emits 1-based start frames; reverse the offset. |
| 65 | assert int(rows[0]["Start Frame"]) - 1 == scene_list[0][0].frame_num |
| 66 | |
| 67 | |
| 68 | @pytest.mark.release |
nothing calls this directly
no test coverage detected