mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2026-02-13 04:49:27 +00:00
Refactor exceptions
* Suffix names for custom exceptions with "Error" * Introduce exceptions for when the coressponding encoder isn't found
This commit is contained in:
14
spotdl/encode/tests/test_exceptions.py
Normal file
14
spotdl/encode/tests/test_exceptions.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from spotdl.encode.exceptions import EncoderNotFoundError
|
||||
from spotdl.encode.exceptions import FFmpegNotFoundError
|
||||
from spotdl.encode.exceptions import AvconvNotFoundError
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
class TestEncoderNotFoundSubclass:
|
||||
def test_ffmpeg_not_found_subclass(self):
|
||||
assert issubclass(FFmpegNotFoundError, EncoderNotFoundError)
|
||||
|
||||
def test_avconv_not_found_subclass(self):
|
||||
assert issubclass(AvconvNotFoundError, EncoderNotFoundError)
|
||||
|
||||
Reference in New Issue
Block a user