Files
spotify-downloader/spotdl/encode/tests/test_exceptions.py
Ritiek Malhotra dae76a0abb Add tests for encoders
and some refactoring
2020-03-17 17:58:44 +05:30

18 lines
562 B
Python

from spotdl.encode.exceptions import EncoderNotFoundError
from spotdl.encode.exceptions import FFmpegNotFoundError
from spotdl.encode.exceptions import AvconvNotFoundError
import pytest
class TestEncoderNotFoundSubclass:
def test_encoder_not_found_subclass(self):
assert issubclass(FFmpegNotFoundError, Exception)
def test_ffmpeg_not_found_subclass(self):
assert issubclass(FFmpegNotFoundError, EncoderNotFoundError)
def test_avconv_not_found_subclass(self):
assert issubclass(AvconvNotFoundError, EncoderNotFoundError)