test: fix test_audio_Audio_sonicallySimilar authenticated test (#1298)

* test: fix test_audio_Audio_sonicallySimilar authenticated test

* Update tests/test_audio.py

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>

---------

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
This commit is contained in:
ReenigneArcher 2023-11-14 19:15:30 -05:00 committed by GitHub
parent c801268057
commit 0708821566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ def account_plexpass(account):
if not account.subscriptionActive: if not account.subscriptionActive:
pytest.skip( pytest.skip(
"PlexPass subscription is not active, unable to test dashboard, movie extras, movie editions, " "PlexPass subscription is not active, unable to test dashboard, movie extras, movie editions, "
"or sync-stuff, be careful!" "sync-stuff, etc... be careful!"
) )
return account return account

View file

@ -444,7 +444,7 @@ def test_audio_Audio_section(artist, album, track):
@pytest.mark.authenticated @pytest.mark.authenticated
def test_audio_Audio_sonicallySimilar(artist): def test_audio_Audio_sonicallySimilar(account_plexpass, artist):
similar_audio = artist.sonicallySimilar() similar_audio = artist.sonicallySimilar()
assert isinstance(similar_audio, list) assert isinstance(similar_audio, list)
assert all(isinstance(i, type(artist)) for i in similar_audio) assert all(isinstance(i, type(artist)) for i in similar_audio)