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

Function test_write_scene_list_edl

tests/test_output.py:251–261  ·  view source on GitHub ↗

EDL output has title header, FCM line, and one event per scene in CMX 3600 format.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

249
250
251def test_write_scene_list_edl(tmp_path: Path):
252 """EDL output has title header, FCM line, and one event per scene in CMX 3600 format."""
253 scenes = _fake_scenes(_FPS_CFR, [(0, 30), (30, 60)])
254 output_path = tmp_path / "scenes.edl"
255 write_scene_list_edl(output_path, scenes, title="my-clip", reel="AX")
256
257 content = output_path.read_text()
258 assert "TITLE: my-clip" in content
259 assert "FCM: NON-DROP FRAME" in content
260 assert "001 AX V C 00:00:00:00 00:00:01:00 00:00:00:00 00:00:01:00" in content
261 assert "002 AX V C 00:00:01:00 00:00:02:00 00:00:01:00 00:00:02:00" in content
262
263
264def test_write_scene_list_edl_accepts_str_path(tmp_path: Path):

Callers

nothing calls this directly

Calls 2

write_scene_list_edlFunction · 0.90
_fake_scenesFunction · 0.85

Tested by

no test coverage detected