Skip to content

Commit 2ffb8b8

Browse files
author
Clement Champetier
committed
pyTest: added a test to check the behavior when adding an empty list of inputs
1 parent 06053fd commit 2ffb8b8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/pyTest/testTranscoderAdd.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ def testAddAStreamFromAFileWhichDoesNotExist():
5353
transcoder.process()
5454

5555

56+
@raises(RuntimeError)
57+
def testEmptyListOfInputs():
58+
"""
59+
Add an empty list of inputs.
60+
"""
61+
# inputs
62+
inputs = av.InputStreamDescVector()
63+
64+
# output
65+
outputFileName = "testEmptyListOfInputs.mov"
66+
ouputFile = av.OutputFile(outputFileName)
67+
68+
transcoder = av.Transcoder(ouputFile)
69+
transcoder.addStream(inputs)
70+
71+
5672
def testAddSeveralInputsToCreateOneOutput():
5773
"""
5874
Add several audio inputs and create one output stream.

0 commit comments

Comments
 (0)