Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def test_sync_entire_library_photos(clear_sync_device, photos):

def test_playlist_movie_sync(plex, clear_sync_device, movies):
items = movies.all()
playlist = plex.createPlaylist("Sync: Movies", items)
playlist = plex.createPlaylist("Sync: Movies", items=items)
new_item = playlist.sync(
videoQuality=VIDEO_QUALITY_3_MBPS_720p, client=clear_sync_device
)
Expand All @@ -407,7 +407,7 @@ def test_playlist_movie_sync(plex, clear_sync_device, movies):

def test_playlist_tvshow_sync(plex, clear_sync_device, show):
items = show.episodes()
playlist = plex.createPlaylist("Sync: TV Show", items)
playlist = plex.createPlaylist("Sync: TV Show", items=items)
new_item = playlist.sync(
videoQuality=VIDEO_QUALITY_3_MBPS_720p, client=clear_sync_device
)
Expand All @@ -429,7 +429,7 @@ def test_playlist_tvshow_sync(plex, clear_sync_device, show):

def test_playlist_mixed_sync(plex, clear_sync_device, movie, episode):
items = [movie, episode]
playlist = plex.createPlaylist("Sync: Mixed", items)
playlist = plex.createPlaylist("Sync: Mixed", items=items)
new_item = playlist.sync(
videoQuality=VIDEO_QUALITY_3_MBPS_720p, client=clear_sync_device
)
Expand All @@ -451,7 +451,7 @@ def test_playlist_mixed_sync(plex, clear_sync_device, movie, episode):

def test_playlist_music_sync(plex, clear_sync_device, artist):
items = artist.tracks()
playlist = plex.createPlaylist("Sync: Music", items)
playlist = plex.createPlaylist("Sync: Music", items=items)
new_item = playlist.sync(
audioBitrate=AUDIO_BITRATE_192_KBPS, client=clear_sync_device
)
Expand All @@ -473,7 +473,7 @@ def test_playlist_music_sync(plex, clear_sync_device, artist):

def test_playlist_photos_sync(plex, clear_sync_device, photoalbum):
items = photoalbum.photos()
playlist = plex.createPlaylist("Sync: Photos", items)
playlist = plex.createPlaylist("Sync: Photos", items=items)
new_item = playlist.sync(
photoResolution=PHOTO_QUALITY_MEDIUM, client=clear_sync_device
)
Expand All @@ -495,7 +495,7 @@ def test_playlist_photos_sync(plex, clear_sync_device, photoalbum):

def test_collection_sync(plex, clear_sync_device, movies, movie):
items = [movie]
collection = plex.createCollection("Sync: Collection", movies, items)
collection = plex.createCollection("Sync: Collection", section=movies, items=items)
new_item = collection.sync(
videoQuality=VIDEO_QUALITY_3_MBPS_720p, client=clear_sync_device
)
Expand Down
1 change: 1 addition & 0 deletions tests/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ def test_video_Show_mixins_edit_advanced_settings(show):
test_mixins.edit_advanced_settings(show)


@pytest.mark.xfail(reason="Changing show art fails randomly")
def test_video_Show_mixins_images(show):
test_mixins.edit_art(show)
test_mixins.edit_poster(show)
Expand Down
2 changes: 2 additions & 0 deletions tools/plex-bootstraptest.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def create_section(server, section, opts):
processed_media = 0
expected_media_count = section.pop("expected_media_count", 0)
expected_media_type = (section["type"],)
if section["type"] == "show":
expected_media_type = ("show", "season", "episode")
if section["type"] == "artist":
expected_media_type = ("artist", "album", "track")
expected_media_type = tuple(SEARCHTYPES[t] for t in expected_media_type)
Expand Down