Skip to content

Commit

Permalink
Add type check
Browse files Browse the repository at this point in the history
  • Loading branch information
kutu-dev committed Sep 17, 2023
1 parent b6ef825 commit 6759916
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/api/test_browsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ def test_get_artist_info(
) -> None:
responses.add(mock_get_artist_info_with_all_optional_params)

response = subsonic.browsing.get_artist_info(artist["id"], len(artist_info["similarArtist"]), False)
response = subsonic.browsing.get_artist_info(
artist["id"], len(artist_info["similarArtist"]), False
)

assert response.biography == artist_info["biography"]
assert response.music_brainz_id == artist_info["musicBrainzId"]
Expand All @@ -194,5 +196,6 @@ def test_get_artist_info(
assert response.medium_image_url == artist_info["mediumImageUrl"]
assert response.large_image_url == artist_info["largeImageUrl"]
assert response.large_image_url == artist_info["largeImageUrl"]
assert response.similar_artists is not None
assert len(response.similar_artists) == len(artist_info["similarArtist"])
assert response.similar_artists[0].name == artist["name"]

0 comments on commit 6759916

Please sign in to comment.