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

Function test_cli_load_scenes_options

tests/test_cli.py:804–819  ·  view source on GitHub ↗

Ensure we can load scenes both with and without the cut row.

()

Source from the content-addressed store, hash-verified

802
803
804def 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
822def test_cli_load_scenes_output():

Callers

nothing calls this directly

Calls 1

invoke_scenedetectFunction · 0.85

Tested by

no test coverage detected