Test `save-edl` command but override the other options.
(tmp_path: Path)
| 944 | |
| 945 | |
| 946 | def 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__} |
| 973 | TITLE: title |
| 974 | FCM: NON-DROP FRAME |
| 975 | |
| 976 | 001 BX V C 00:00:02:00 00:00:03:18 00:00:02:00 00:00:03:18 |
| 977 | 002 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 | |
| 982 | def test_cli_save_otio(tmp_path: Path): |
nothing calls this directly
no test coverage detected