mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 12:58:26 +00:00
Add test for library create playlist
This commit is contained in:
parent
7d90fd60e8
commit
8397ab2145
1 changed files with 9 additions and 0 deletions
|
@ -199,6 +199,15 @@ def test_library_MovieSection_collections(movies, collection):
|
|||
assert len(movies.collections())
|
||||
|
||||
|
||||
def test_library_MovieSection_createPlaylist(movies):
|
||||
items = movies.all()
|
||||
try:
|
||||
playlist = movies.createPlaylist("Library Playlist", items=items)
|
||||
assert len(playlist) == len(items)
|
||||
finally:
|
||||
playlist.delete()
|
||||
|
||||
|
||||
def test_library_ShowSection_all(tvshows):
|
||||
assert len(tvshows.all(title__iexact="The 100"))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue