Ensure we can load scenes both with and without the cut row.
()
| 802 | |
| 803 | |
| 804 | def test_cli_load_scenes_options(): |
| 805 | """Ensure we can load scenes both with and without the cut row.""" |
| 806 | assert invoke_scenedetect("-i {VIDEO} time {TIME} {DETECTOR} list-scenes") == 0 |
| 807 | assert invoke_scenedetect("-i {VIDEO} time {TIME} load-scenes -i {VIDEO_NAME}-Scenes.csv") == 0 |
| 808 | # Specifying a detector with load-scenes should be disallowed. |
| 809 | assert invoke_scenedetect( |
| 810 | "-i {VIDEO} time {TIME} {DETECTOR} load-scenes -i {VIDEO_NAME}-Scenes.csv" |
| 811 | ) |
| 812 | # Specifying load-scenes several times should be disallowed. |
| 813 | assert invoke_scenedetect( |
| 814 | "-i {VIDEO} time {TIME} load-scenes -i {VIDEO_NAME}-Scenes.csv load-scenes -i {VIDEO_NAME}-Scenes.csv" |
| 815 | ) |
| 816 | # If `-s`/`--skip-cuts` is specified, the resulting scene list should still be compatible with |
| 817 | # the `load-scenes` command. |
| 818 | assert invoke_scenedetect("-i {VIDEO} time {TIME} {DETECTOR} list-scenes -s") == 0 |
| 819 | assert invoke_scenedetect("-i {VIDEO} time {TIME} load-scenes -i {VIDEO_NAME}-Scenes.csv") == 0 |
| 820 | |
| 821 | |
| 822 | def test_cli_load_scenes_output(): |
nothing calls this directly
no test coverage detected