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

Function test_vfr_fcp_export

tests/test_vfr.py:384–406  ·  view source on GitHub ↗

`save-fcp` should succeed on VFR video and produce well-formed output in either dialect.

(test_vfr_video: str, fcp_format: str, tmp_path)

Source from the content-addressed store, hash-verified

382
383@pytest.mark.parametrize("fcp_format", ["fcpx", "fcp7"])
384def test_vfr_fcp_export(test_vfr_video: str, fcp_format: str, tmp_path):
385 """`save-fcp` should succeed on VFR video and produce well-formed output in either dialect."""
386 from xml.etree import ElementTree
387
388 exit_code, _ = invoke_cli(
389 [
390 "-i",
391 test_vfr_video,
392 "-o",
393 str(tmp_path),
394 "detect-content",
395 "time",
396 "--end",
397 "10s",
398 "save-fcp",
399 "--format",
400 fcp_format,
401 ]
402 )
403 assert exit_code == 0
404 xml_path = next(tmp_path.glob("*.xml"))
405 root = ElementTree.parse(xml_path).getroot()
406 assert root.tag == ("fcpxml" if fcp_format == "fcpx" else "xmeml")
407
408
409def test_vfr_csv_backend_conformance(test_vfr_video: str):

Callers

nothing calls this directly

Calls 1

invoke_cliFunction · 0.90

Tested by

no test coverage detected