From 0a121125f119f60ece5fd83a723f2c830b92e13a Mon Sep 17 00:00:00 2001 From: lucemia Date: Sat, 4 Jan 2025 01:06:12 +0800 Subject: [PATCH] add comment --- src/ffmpeg/tests/test_base.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ffmpeg/tests/test_base.py b/src/ffmpeg/tests/test_base.py index 4e0be9be..7eb1f222 100644 --- a/src/ffmpeg/tests/test_base.py +++ b/src/ffmpeg/tests/test_base.py @@ -8,6 +8,18 @@ from ..streams.video import VideoStream +def test_output_node(snapshot: SnapshotAssertion) -> None: + input1 = input("input1") + + value = {"str": "x", "int": 1, "float": 0.1} + # due to https://github.com/python/mypy/issues/11583 + out = input1.output(filename="out.mp4", **value) # type: ignore[arg-type] + assert snapshot(extension_class=JSONSnapshotExtension) == (out.compile()) + + out = input1.output(filename="out.mp4", extra_options=value) + assert snapshot(extension_class=JSONSnapshotExtension) == (out.compile()) + + def test_filter_node(snapshot: SnapshotAssertion) -> None: input1 = input("input1") input2 = input("input2")