>=3.10 strict typing (#765)
* >=3.10 * fully typed (mypy strict mode enabled) * fix tests (get_tasteprofile now requires auth - serverside) * update linters * fix uploads search
This commit is contained in:
parent
03acc6ecff
commit
a979691bb0
47 changed files with 717 additions and 503 deletions
|
|
@ -2,6 +2,8 @@ from urllib.parse import urlparse
|
|||
|
||||
import pytest
|
||||
|
||||
from ytmusicapi.exceptions import YTMusicUserError
|
||||
|
||||
|
||||
class TestLibrary:
|
||||
def test_get_library_playlists(self, config, yt_oauth, yt_empty):
|
||||
|
|
@ -111,8 +113,8 @@ class TestLibrary:
|
|||
assert "actions" in response
|
||||
response = yt_auth.rate_song(sample_video, "INDIFFERENT")
|
||||
assert response
|
||||
response = yt_auth.rate_song(sample_video, "notexist")
|
||||
assert not response
|
||||
with pytest.raises(YTMusicUserError):
|
||||
yt_auth.rate_song(sample_video, "notexist")
|
||||
|
||||
@pytest.mark.skip(reason="edit_song_library_status is currently broken due to server-side update")
|
||||
def test_edit_song_library_status(self, yt_brand, sample_album):
|
||||
|
|
|
|||
Loading…
Reference in a new issue