(test_case: TestCase)
| 196 | |
| 197 | @pytest.mark.parametrize("test_case", get_fade_in_out_test_cases()) |
| 198 | def test_detect_fades(test_case: TestCase): |
| 199 | scene_list = test_case.detect() |
| 200 | start_frames = [timecode.frame_num for timecode, _ in scene_list] |
| 201 | assert start_frames == test_case.scene_boundaries |
| 202 | assert scene_list[0][0] == test_case.start_time |
| 203 | assert scene_list[-1][1] == test_case.end_time |
| 204 | |
| 205 | |
| 206 | def test_detectors_with_stats(test_video_file): |