`save-fcp` should succeed on VFR video and produce well-formed output in either dialect.
(test_vfr_video: str, fcp_format: str, tmp_path)
| 382 | |
| 383 | @pytest.mark.parametrize("fcp_format", ["fcpx", "fcp7"]) |
| 384 | def 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 | |
| 409 | def test_vfr_csv_backend_conformance(test_vfr_video: str): |
nothing calls this directly
no test coverage detected