Remove playlist created during tests (#611)

This commit is contained in:
jjlawren 2020-12-03 22:56:08 -06:00 committed by GitHub
parent d98275f6ac
commit 589941fb17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()