Skip to content

Commit 5836e74

Browse files
hokiedsptikuma-lsuhsc
authored andcommitted
updated test
1 parent 014ebc9 commit 5836e74

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

tests/test_configure.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ def test_process_url_inputs(url, opts, defopts, ret):
215215
[(mul_url, {})],
216216
[{"src_type": "url"}],
217217
["split=outputs=2"],
218-
{"[out0]": {"media_type": "video"}, "[out1]": {"media_type": "video"}},
218+
{
219+
"[out0]": {"media_type": "video", "linklabel": "[out0]"},
220+
"[out1]": {"media_type": "video", "linklabel": "[out1]"},
221+
},
219222
),
220223
],
221224
)
@@ -229,7 +232,11 @@ def test_auto_map(inputs, input_info, filters_complex, ret):
229232
args["global_options"] = {"filter_complex": filters_complex}
230233
out = configure.auto_map(args, input_info, filters_complex and fg_info)
231234
assert out == {
232-
spec: {"dst_type": "buffer", "user_map": None, **info}
235+
spec: {
236+
"dst_type": "buffer",
237+
"user_map": spec[1:-1] if "linklabel" in info else spec,
238+
**info,
239+
}
233240
for spec, info in ret.items()
234241
}
235242

tests/test_filtergraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def test_filter_empty_handling():
479479
assert (fg4 * 2).compose() == ""
480480

481481
assert (fg1 + fg3).compose() == "trim,crop"
482-
assert (fg1 | fg3).compose() == "trim,crop"
482+
assert (fg1 | fg3).compose() == "[UNC0]trim,crop[UNC1]"
483483

484484
assert (fg2 + fg3).compose() == "[UNC0]fps[UNC2];[UNC1]scale[UNC3]"
485485
assert (fg2 | fg3).compose() == "[UNC0]fps[UNC2];[UNC1]scale[UNC3]"

0 commit comments

Comments
 (0)