@@ -147,6 +147,28 @@ def cleanup(self):
147147 if os .path .isdir ("normalized" ):
148148 shutil .rmtree ("normalized" )
149149
150+ def test_input_list (self , tmp_path ):
151+ # Create a temporary input list file using pytest tmp_path
152+ input_list_path = tmp_path / "input_list.txt"
153+ input_list_path .write_text ("tests/test.mp4\n tests/test.mp4\n " )
154+ # Run ffmpeg-normalize with --input-list
155+ ffmpeg_normalize_call (["--input-list" , str (input_list_path )])
156+ # Check output files
157+ assert os .path .isfile ("normalized/test.mkv" )
158+
159+ def test_no_input_specified (self ):
160+ """Run the CLI with no arguments; should exit with error"""
161+ _ , stderr = ffmpeg_normalize_call ([])
162+ assert "No input files specified" in stderr
163+
164+ def test_empty_input_list_file (self , tmp_path ):
165+ # Create an empty input list file using pytest tmp_path
166+ input_list_path = tmp_path / "empty_input_list.txt"
167+ input_list_path .write_text ("" )
168+ _ , stderr = ffmpeg_normalize_call (["--input-list" , str (input_list_path )])
169+ # Should error because the list is empty
170+ assert "No input files specified" in stderr
171+
150172 def test_output_filename_and_folder (self ):
151173 ffmpeg_normalize_call (["tests/test.mp4" ])
152174 assert os .path .isfile ("normalized/test.mkv" )
0 commit comments