Skip to content

Commit d143c98

Browse files
kevinmcmurtriebenoit74
authored andcommitted
Delete pointless identity test
1 parent ab988e5 commit d143c98

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

tests/video/test_video.py

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -143,34 +143,7 @@ def test_preset_video_webm_low():
143143
config = VideoWebmLow()
144144
assert config.VERSION == 1
145145
args = config.to_ffmpeg_args()
146-
assert len(args) == 24
147-
options_map = [
148-
("codec:v", "libvpx"),
149-
("codec:a", "libvorbis"),
150-
("maxrate", "300k"),
151-
("minrate", "300k"),
152-
("b:v", "300k"),
153-
("ar", "44100"),
154-
("b:a", "48k"),
155-
("quality", "best"),
156-
("qmin", "30"),
157-
("qmax", "42"),
158-
("vf", "scale='480:trunc(ow/a/2)*2'"),
159-
]
160-
for option, val in options_map:
161-
idx = args.index(f"-{option}")
162-
assert idx != -1
163-
assert args[idx + 1] == val
164-
165-
# test updating values
166-
config = VideoWebmLow(**{"-ar": "50000"})
167-
config["-bufsize"] = "900k"
168-
args = config.to_ffmpeg_args()
169-
idx = args.index("-ar")
170-
assert idx != -1 and args[idx + 1] == "50000"
171-
idx = args.index("-bufsize")
172-
assert idx != -1 and args[idx + 1] == "900k"
173-
146+
assert len(args) > 0
174147

175148
def test_preset_video_webm_high():
176149
config = VideoWebmHigh()

0 commit comments

Comments
 (0)