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

Function get_fast_cut_test_cases

tests/test_detectors.py:97–128  ·  view source on GitHub ↗

Fixture for parameterized test cases that detect fast cuts.

()

Source from the content-addressed store, hash-verified

95
96
97def get_fast_cut_test_cases():
98 """Fixture for parameterized test cases that detect fast cuts."""
99 test_cases = []
100 # goldeneye.mp4 with min_scene_len = 15 (default)
101 test_cases += [
102 pytest.param(
103 TestCase(
104 path=get_absolute_path("resources/goldeneye.mp4"),
105 detector=detector_type(min_scene_len=15),
106 start_time=1199,
107 end_time=1450,
108 scene_boundaries=[1199, 1226, 1260, 1281, 1334, 1365],
109 ),
110 id=f"{detector_type.__name__}/default",
111 )
112 for detector_type in FAST_CUT_DETECTORS
113 ]
114 # goldeneye.mp4 with min_scene_len = 30
115 test_cases += [
116 pytest.param(
117 TestCase(
118 path=get_absolute_path("resources/goldeneye.mp4"),
119 detector=detector_type(min_scene_len=30),
120 start_time=1199,
121 end_time=1450,
122 scene_boundaries=[1199, 1260, 1334, 1365],
123 ),
124 id=f"{detector_type.__name__}/m=30",
125 )
126 for detector_type in FAST_CUT_DETECTORS
127 ]
128 return test_cases
129
130
131def get_fade_in_out_test_cases():

Callers

nothing calls this directly

Calls 2

TestCaseClass · 0.85
get_absolute_pathFunction · 0.70

Tested by

no test coverage detected