mirror of
				https://github.com/KevinMidboe/spotify-downloader.git
				synced 2025-10-29 18:00:15 +00:00 
			
		
		
		
	* Suffix names for custom exceptions with "Error" * Introduce exceptions for when the coressponding encoder isn't found
		
			
				
	
	
		
			14 lines
		
	
	
		
			417 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			417 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from spotdl.encode import EncoderBase
 | |
| 
 | |
| import pytest
 | |
| 
 | |
| def test_abstract_base_class_encoderbase():
 | |
|     encoder_path = "ffmpeg"
 | |
|     _loglevel = "-hide_banner -nostats -v panic"
 | |
|     _additional_arguments = ["-b:a", "192k", "-vn"]
 | |
| 
 | |
|     with pytest.raises(TypeError):
 | |
|         # This abstract base class must be inherited from
 | |
|         # for instantiation
 | |
|         EncoderBase(encoder_path, _loglevel, _additional_arguments)
 |