Skip to content

Commit 0771718

Browse files
committed
additional edit test with bad path
1 parent 9302f0d commit 0771718

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_library.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ def test_library_add_edit_delete(plex, movies, photos):
175175
section.edit(**{'location': movie_location})
176176
section.reload()
177177
assert len(section.locations) == 1
178+
with pytest.raises(BadRequest):
179+
section.edit(**{'location': movie_location[:-1]})
178180
# Attempt to remove all locations
179181
with pytest.raises(BadRequest):
180182
section.removeLocations(section.locations)

0 commit comments

Comments
 (0)