MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / test_cli_crop_rejects_invalid

Function test_cli_crop_rejects_invalid

tests/test_cli.py:123–133  ·  view source on GitHub ↗

Test --crop rejects invalid options.

()

Source from the content-addressed store, hash-verified

121
122
123def test_cli_crop_rejects_invalid():
124 """Test --crop rejects invalid options."""
125 # Outside of video bounds
126 assert (
127 invoke_scenedetect("-i {VIDEO} --crop 4000 0 8000 100 time {TIME}", config_file=None) != 1
128 )
129 assert (
130 invoke_scenedetect("-i {VIDEO} --crop 0 4000 100 8000 time {TIME}", config_file=None) != 1
131 )
132 # Negative numbers
133 assert invoke_scenedetect("-i {VIDEO} --crop 0 0 -256 -256 time {TIME}", config_file=None) != 1
134
135
136@pytest.mark.parametrize("info_command", ["help", "about", "version"])

Callers

nothing calls this directly

Calls 1

invoke_scenedetectFunction · 0.85

Tested by

no test coverage detected