File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def test_Playlist_edit(plex, movie):
101101 playlist .delete ()
102102
103103
104- def test_Playlist_item (plex , show ):
104+ def test_Playlist_items (plex , show ):
105105 title = 'test_playlist_item'
106106 episodes = show .episodes ()
107107 try :
@@ -117,6 +117,24 @@ def test_Playlist_item(plex, show):
117117 playlist .delete ()
118118
119119
120+ def test_Playlist_items_libtype (plex , show ):
121+ title = 'test_playlist_group_items'
122+ episodes = show .episodes ()
123+ try :
124+ playlist = plex .createPlaylist (title , items = episodes [:3 ])
125+ playlist_shows = playlist .items (libtype = 'show' )
126+ assert len (playlist_shows ) == 1
127+ assert playlist_shows [0 ] == show
128+ playlist_seasons = playlist .items (libtype = 'season' )
129+ assert len (playlist_seasons ) == 1
130+ assert playlist_seasons [0 ] == show .season (1 )
131+ playlist_episodes = playlist .items (libtype = 'episode' )
132+ assert len (playlist_episodes ) == 3
133+ assert playlist_episodes == episodes [:3 ]
134+ finally :
135+ playlist .delete ()
136+
137+
120138@pytest .mark .client
121139def test_Playlist_play (plex , client , artist , album ):
122140 try :
You can’t perform that action at this time.
0 commit comments