@@ -175,7 +175,7 @@ def test_cli_normalization_threshold_argument(common_expected_args):
175175 mock_separator .assert_called_once_with (** expected_args )
176176
177177
178- # Test using normalization_threshold argument
178+ # Test using amplification_threshold argument
179179def test_cli_amplification_threshold_argument (common_expected_args ):
180180 test_args = ["cli.py" , "test_audio.mp3" , "--amplification=0.75" ]
181181 with patch ("sys.argv" , test_args ):
@@ -243,36 +243,6 @@ def test_cli_use_autocast_argument(common_expected_args):
243243 mock_separator .assert_called_once_with (** expected_args )
244244
245245
246- # Test using custom_output_names argument
247- def test_cli_Vocals_output_name_argument (common_expected_args ):
248- custom_vocals_names = {"Vocals" : "vocals_output" }
249- test_args = ["cli.py" , "test_audio.mp3" , f"--custom_output_names={ json .dumps (custom_vocals_names )} " ]
250- with patch ("sys.argv" , test_args ):
251- with patch ("audio_separator.separator.Separator" ) as mock_separator :
252- mock_separator_instance = mock_separator .return_value
253- mock_separator_instance .separate .return_value = ["output_file.mp3" ]
254- main ()
255-
256- # Assertions
257- mock_separator .assert_called_once_with (** common_expected_args )
258- mock_separator_instance .separate .assert_called_once_with ("test_audio.mp3" , custom_output_names = custom_vocals_names )
259-
260-
261- # Test using custom_output_names argument
262- def test_cli_Instrumental_output_name_argument (common_expected_args ):
263- custom_instrumental_names = {"Instrumental" : "instrumental_output" }
264- test_args = ["cli.py" , "test_audio.mp3" , f"--custom_output_names={ json .dumps (custom_instrumental_names )} " ]
265- with patch ("sys.argv" , test_args ):
266- with patch ("audio_separator.separator.Separator" ) as mock_separator :
267- mock_separator_instance = mock_separator .return_value
268- mock_separator_instance .separate .return_value = ["output_file.mp3" ]
269- main ()
270-
271- # Assertions
272- mock_separator .assert_called_once_with (** common_expected_args )
273- mock_separator_instance .separate .assert_called_once_with ("test_audio.mp3" , custom_output_names = custom_instrumental_names )
274-
275-
276246# Test using custom_output_names arguments
277247def test_cli_custom_output_names_argument (common_expected_args ):
278248 custom_names = {
0 commit comments