Chore: Subsonic: Clean up last of the typing errors and add tests (#2225)
authorEric Munson <eric@munsonfam.org>
Tue, 10 Jun 2025 21:16:03 +0000 (17:16 -0400)
committerGitHub <noreply@github.com>
Tue, 10 Jun 2025 21:16:03 +0000 (23:16 +0200)
commit9290abb0bea6077610d4e81ca85893de78352219
tree163c9ad25d0318cc75b2ec1a4386c413ddda287c
parenta526f4c324de13c26c25059131f6ecff64ce04c4
Chore: Subsonic: Clean up last of the typing errors and add tests (#2225)

Take the time to clean up the last of the strict type checker errors.
While in here, lets add test cases that excercise some of the work
aroudns we have for various subsonic servers.

Signed-off-by: Eric B Munson <eric@munsonfam.org>
14 files changed:
music_assistant/providers/opensubsonic/parsers.py
music_assistant/providers/opensubsonic/sonic_provider.py
tests/providers/opensubsonic/__snapshots__/test_parsers.ambr
tests/providers/opensubsonic/fixtures/albums/no-artist.album.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/albums/no-artist.info.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/artists/no-sort-name.artist.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/artists/no-sort-name.info.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/episodes/no-duration.episode.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/episodes/no-duration.podcast.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/podcasts/no-episodes.podcast.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/tracks/missing-items.album.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/tracks/missing-items.track.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/tracks/navi-various.album.json [new file with mode: 0644]
tests/providers/opensubsonic/fixtures/tracks/navi-various.track.json [new file with mode: 0644]