Test --crop rejects invalid options.
()
| 121 | |
| 122 | |
| 123 | def 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"]) |
nothing calls this directly
no test coverage detected