MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / test_detect_fades

Function test_detect_fades

tests/test_detectors.py:198–203  ·  view source on GitHub ↗
(test_case: TestCase)

Source from the content-addressed store, hash-verified

196
197@pytest.mark.parametrize("test_case", get_fade_in_out_test_cases())
198def 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
206def test_detectors_with_stats(test_video_file):

Callers

nothing calls this directly

Calls 1

detectMethod · 0.80

Tested by

no test coverage detected