Skip to content

Commit e0796e2

Browse files
committed
add test for smart playlist
1 parent a129217 commit e0796e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_playlist.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,9 @@ def test_copyToUser(plex, show, fresh_plex, shared_username):
109109
assert playlist.title in [p.title for p in user_plex.playlists()]
110110
finally:
111111
playlist.delete()
112+
113+
114+
def test_smart_playlist(plex, movies):
115+
pl = plex.createPlaylist(title='smart_playlist', limit=1, section=movies, year=2008)
116+
assert len(pl.items()) == 1
117+
assert pl.smart

0 commit comments

Comments
 (0)