mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-25 13:10:17 +00:00
Remove playlist created during tests (#611)
This commit is contained in:
parent
d98275f6ac
commit
589941fb17
1 changed files with 6 additions and 3 deletions
|
@ -95,6 +95,9 @@ def test_copyToUser(plex, show, fresh_plex, shared_username):
|
|||
|
||||
|
||||
def test_smart_playlist(plex, movies):
|
||||
pl = plex.createPlaylist(title='smart_playlist', smart=True, limit=1, section=movies, year=2008)
|
||||
assert len(pl.items()) == 1
|
||||
assert pl.smart
|
||||
try:
|
||||
pl = plex.createPlaylist(title='smart_playlist', smart=True, limit=1, section=movies, year=2008)
|
||||
assert len(pl.items()) == 1
|
||||
assert pl.smart
|
||||
finally:
|
||||
pl.delete()
|
||||
|
|
Loading…
Reference in a new issue