Update playlist tests for NotFound when removing or moving items

This commit is contained in:
JonnyWong16 2021-06-02 09:27:35 -07:00
parent 38114b62ba
commit c31c5317b3
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -213,6 +213,12 @@ def test_Playlist_exceptions(plex, movies, movie, artist):
playlist.updateFilters()
with pytest.raises(BadRequest):
playlist.addItems(artist)
with pytest.raises(NotFound):
playlist.removeItems(artist)
with pytest.raises(NotFound):
playlist.moveItem(artist)
with pytest.raises(NotFound):
playlist.moveItem(item=movie, after=artist)
finally:
playlist.delete()