Skip to content

Commit e330dd8

Browse files
authored
Update all image resource tests
1 parent d6a965c commit e330dd8

File tree

6 files changed

+25
-22
lines changed

6 files changed

+25
-22
lines changed

tests/test_audio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ def test_audio_Artist_mixins_edit_advanced_settings(artist):
104104
def test_audio_Artist_mixins_images(artist):
105105
test_mixins.lock_art(artist)
106106
test_mixins.lock_poster(artist)
107-
test_mixins.lock_square_art(artist)
107+
test_mixins.lock_squareArt(artist)
108108
test_mixins.edit_art(artist)
109109
test_mixins.edit_poster(artist)
110-
test_mixins.edit_square_art(artist)
110+
test_mixins.edit_squareArt(artist)
111111
test_mixins.attr_artUrl(artist)
112112
test_mixins.attr_logoUrl(artist)
113113
test_mixins.attr_posterUrl(artist)
@@ -238,10 +238,10 @@ def test_audio_Album_artist(album):
238238
def test_audio_Album_mixins_images(album):
239239
test_mixins.lock_art(album)
240240
test_mixins.lock_poster(album)
241-
test_mixins.lock_square_art(album)
241+
test_mixins.lock_squareArt(album)
242242
test_mixins.edit_art(album)
243243
test_mixins.edit_poster(album)
244-
test_mixins.edit_square_art(album)
244+
test_mixins.edit_squareArt(album)
245245
test_mixins.attr_artUrl(album)
246246
test_mixins.attr_logoUrl(album)
247247
test_mixins.attr_posterUrl(album)

tests/test_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,10 @@ def test_Collection_art(collection):
353353
def test_Collection_mixins_images(collection):
354354
test_mixins.lock_art(collection)
355355
test_mixins.lock_poster(collection)
356-
test_mixins.lock_square_art(collection)
356+
test_mixins.lock_squareArt(collection)
357357
test_mixins.edit_art(collection)
358358
test_mixins.edit_poster(collection)
359-
test_mixins.edit_square_art(collection)
359+
test_mixins.edit_squareArt(collection)
360360
test_mixins.attr_artUrl(collection)
361361
test_mixins.attr_logoUrl(collection)
362362
test_mixins.attr_posterUrl(collection)

tests/test_mixins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def lock_poster(obj):
223223
_test_mixins_lock_image(obj, "posters")
224224

225225

226-
def lock_square_art(obj):
226+
def lock_squareArt(obj):
227227
_test_mixins_lock_image(obj, "squareArts")
228228

229229

@@ -298,7 +298,7 @@ def edit_poster(obj):
298298
_test_mixins_edit_image(obj, "posters")
299299

300300

301-
def edit_square_art(obj):
301+
def edit_squareArt(obj):
302302
_test_mixins_edit_image(obj, "squareArts")
303303

304304

tests/test_photo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ def test_photo_Photoalbum(photoalbum):
1717

1818
@pytest.mark.xfail(reason="Changing images fails randomly")
1919
def test_photo_Photoalbum_mixins_images(photoalbum):
20-
# test_mixins.lock_art(photoalbum) # Unlocking photoalbum artwork is broken in Plex
21-
# test_mixins.lock_poster(photoalbum) # Unlocking photoalbum poster is broken in Plex
2220
test_mixins.edit_art(photoalbum)
2321
test_mixins.edit_poster(photoalbum)
24-
test_mixins.lock_square_art(photoalbum)
22+
test_mixins.edit_squareArt(photoalbum)
23+
test_mixins.lock_art(photoalbum)
24+
test_mixins.lock_poster(photoalbum)
25+
test_mixins.lock_squareArt(photoalbum)
2526
test_mixins.attr_artUrl(photoalbum)
2627
test_mixins.attr_logoUrl(photoalbum)
2728
test_mixins.attr_posterUrl(photoalbum)

tests/test_playlist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,14 @@ def test_Playlist_PlexWebURL(plex, show):
328328
def test_Playlist_mixins_images(playlist):
329329
test_mixins.lock_art(playlist)
330330
test_mixins.lock_poster(playlist)
331-
test_mixins.lock_square_art(playlist)
331+
test_mixins.lock_squareArt(playlist)
332332
test_mixins.edit_art(playlist)
333333
test_mixins.edit_poster(playlist)
334-
test_mixins.edit_square_art(playlist)
334+
test_mixins.edit_squareArt(playlist)
335335
test_mixins.attr_artUrl(playlist)
336336
test_mixins.attr_logoUrl(playlist)
337337
test_mixins.attr_posterUrl(playlist)
338+
test_mixins.attr_squareArtUrl(playlist)
338339

339340

340341
def test_Playlist_mixins_fields(playlist):

tests/test_video.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -695,13 +695,14 @@ def test_video_Movie_mixins_edit_advanced_settings(movie):
695695
def test_video_Movie_mixins_images(movie):
696696
test_mixins.lock_art(movie)
697697
test_mixins.lock_poster(movie)
698-
test_mixins.lock_square_art(movie)
698+
test_mixins.lock_squareArt(movie)
699699
test_mixins.edit_art(movie)
700700
test_mixins.edit_poster(movie)
701-
test_mixins.edit_square_art(movie)
701+
test_mixins.edit_squareArt(movie)
702702
test_mixins.attr_artUrl(movie)
703703
test_mixins.attr_logoUrl(movie)
704704
test_mixins.attr_posterUrl(movie)
705+
test_mixins.attr_squareArtUrl(movie)
705706

706707

707708
def test_video_Movie_mixins_themes(movie):
@@ -967,10 +968,10 @@ def test_video_Show_mixins_edit_advanced_settings(show):
967968
def test_video_Show_mixins_images(show):
968969
test_mixins.lock_art(show)
969970
test_mixins.lock_poster(show)
970-
test_mixins.lock_square_art(show)
971+
test_mixins.lock_squareArt(show)
971972
test_mixins.edit_art(show)
972973
test_mixins.edit_poster(show)
973-
test_mixins.edit_square_art(show)
974+
test_mixins.edit_squareArt(show)
974975
test_mixins.attr_artUrl(show)
975976
test_mixins.attr_logoUrl(show)
976977
test_mixins.attr_posterUrl(show)
@@ -1175,10 +1176,10 @@ def test_video_Season_mixins_images(show):
11751176
season = show.season(season=1)
11761177
test_mixins.lock_art(season)
11771178
test_mixins.lock_poster(season)
1178-
test_mixins.lock_square_art(season)
1179+
test_mixins.lock_squareArt(season)
11791180
test_mixins.edit_art(season)
11801181
test_mixins.edit_poster(season)
1181-
test_mixins.edit_square_art(season)
1182+
test_mixins.edit_squareArt(season)
11821183
test_mixins.attr_artUrl(season)
11831184
test_mixins.attr_logoUrl(season)
11841185
test_mixins.attr_posterUrl(season)
@@ -1397,10 +1398,10 @@ def test_video_Episode_unwatched(tvshows):
13971398
def test_video_Episode_mixins_images(episode):
13981399
test_mixins.lock_art(episode)
13991400
test_mixins.lock_poster(episode)
1400-
test_mixins.lock_square_art(episode)
1401-
# test_mixins.edit_art(episode) # Uploading episode artwork is broken in Plex
1401+
test_mixins.lock_squareArt(episode)
1402+
test_mixins.edit_art(episode)
14021403
test_mixins.edit_poster(episode)
1403-
test_mixins.edit_square_art(episode)
1404+
test_mixins.edit_squareArt(episode)
14041405
test_mixins.attr_artUrl(episode)
14051406
test_mixins.attr_logoUrl(episode)
14061407
test_mixins.attr_posterUrl(episode)

0 commit comments

Comments
 (0)