Skip to content

Commit d2c3fb1

Browse files
committed
attempt to remove all locations
1 parent 4f340d0 commit d2c3fb1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_library.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def test_library_add_edit_delete(plex, movies, photos):
172172
section.addLocations(photo_location)
173173
section.reload()
174174
assert len(section.locations) == 2
175+
# Attempt to remove all locations
176+
with pytest.raises(BadRequest):
177+
plex.library.removeLocations(section.locations)
175178
section.delete()
176179
assert section not in plex.library.sections()
177180

0 commit comments

Comments
 (0)