Fix 721 (#725)
* update dev-dependencies * fix INP001 * fix #721 * add test * format
This commit is contained in:
parent
862f507e82
commit
e41e1a37d7
8 changed files with 284 additions and 277 deletions
|
|
@ -1,6 +1,14 @@
|
|||
import pytest
|
||||
|
||||
from ytmusicapi import YTMusic
|
||||
from ytmusicapi.exceptions import YTMusicUserError
|
||||
|
||||
|
||||
def test_ytmusic_context():
|
||||
with YTMusic(requests_session=False) as yt:
|
||||
assert isinstance(yt, YTMusic)
|
||||
|
||||
|
||||
def test_ytmusic_auth_error():
|
||||
with pytest.raises(YTMusicUserError, match="Invalid auth"):
|
||||
YTMusic(auth="def")
|
||||
|
|
|
|||
Loading…
Reference in a new issue