Skip to content

Commit df5b292

Browse files
committed
Fix tv show theme tests
1 parent 705be71 commit df5b292

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_video.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,14 @@ def test_video_Show_mixins_images(show):
982982
test_mixins.attr_squareArtUrl(show)
983983

984984

985-
def test_video_Show_mixins_themes(show):
985+
def test_video_Show_mixins_themes(show, plex):
986986
test_mixins.edit_theme(show)
987987

988+
# Need to re-upload theme for future season/episode tests
989+
if themes := show.themes():
990+
if theme := next((t for t in themes if t.ratingKey.startswith("metadata://")), None):
991+
show.uploadTheme(url=plex.url(theme.key, includeToken=True)).unlockTheme()
992+
988993

989994
def test_video_Show_mixins_rating(show):
990995
test_mixins.edit_rating(show)

0 commit comments

Comments
 (0)