mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +00:00
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:
parent
c801268057
commit
0708821566
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue