mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 12:58:26 +00:00
additional edit test with bad path
This commit is contained in:
parent
9302f0dea1
commit
07717186ee
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,8 @@ def test_library_add_edit_delete(plex, movies, photos):
|
|||
section.edit(**{'location': movie_location})
|
||||
section.reload()
|
||||
assert len(section.locations) == 1
|
||||
with pytest.raises(BadRequest):
|
||||
section.edit(**{'location': movie_location[:-1]})
|
||||
# Attempt to remove all locations
|
||||
with pytest.raises(BadRequest):
|
||||
section.removeLocations(section.locations)
|
||||
|
|
Loading…
Add table
Reference in a new issue