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

Function test_cli_save_edl_with_params

tests/test_cli.py:946–979  ·  view source on GitHub ↗

Test `save-edl` command but override the other options.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

944
945
946def test_cli_save_edl_with_params(tmp_path: Path):
947 """Test `save-edl` command but override the other options."""
948 exit_code, _ = invoke_cli(
949 [
950 "-i",
951 DEFAULT_VIDEO_PATH,
952 "-o",
953 str(tmp_path),
954 "time",
955 "-s",
956 "2s",
957 "-d",
958 "4s",
959 "detect-content",
960 "save-edl",
961 "-t",
962 "title",
963 "-r",
964 "BX",
965 "-f",
966 "file_no_ext",
967 ]
968 )
969 assert exit_code == 0
970 output_path = tmp_path.joinpath("file_no_ext")
971 assert os.path.exists(output_path)
972 EXPECTED_EDL_OUTPUT = f"""* CREATED WITH PYSCENEDETECT {scenedetect.__version__}
973TITLE: title
974FCM: NON-DROP FRAME
975
976001 BX V C 00:00:02:00 00:00:03:18 00:00:02:00 00:00:03:18
977002 BX V C 00:00:03:18 00:00:06:00 00:00:03:18 00:00:06:00
978"""
979 assert output_path.read_text() == EXPECTED_EDL_OUTPUT
980
981
982def test_cli_save_otio(tmp_path: Path):

Callers

nothing calls this directly

Calls 1

invoke_cliFunction · 0.90

Tested by

no test coverage detected