mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
The following inputs can now be used to fetch lyrics: * artist and track names * search query * direct url
25 lines
656 B
Python
25 lines
656 B
Python
from spotdl.lyrics import LyricBase
|
|
|
|
import pytest
|
|
|
|
|
|
class TestAbstractBaseClass:
|
|
def test_error_abstract_base_class_lyricbase(self):
|
|
with pytest.raises(TypeError):
|
|
# This abstract base class must be inherited from
|
|
# for instantiation
|
|
LyricBase()
|
|
|
|
def test_inherit_abstract_base_class_encoderbase(self):
|
|
class LyricKid(LyricBase):
|
|
def from_query(self, query):
|
|
raise NotImplementedError
|
|
|
|
def from_artist_and_track(self, artist, track):
|
|
pass
|
|
|
|
def from_url(self, url):
|
|
raise NotImplementedError
|
|
|
|
LyricKid()
|