add test for confirming edit and field locked on a collection

This commit is contained in:
blacktwin 2020-06-12 14:17:08 -04:00
parent f5e2021bff
commit 15f76e8480

View file

@ -238,6 +238,18 @@ def test_library_Colletion_sortRelease(collection):
assert collection.collectionSort == "0" assert collection.collectionSort == "0"
def test_library_Colletion_edit(collection):
edits = {'titleSort.value': 'New Title Sort', 'titleSort.locked': 1}
collectionTitleSort = collection.titleSort
collection.edit(**edits)
collection.reload()
for field in collection.fields:
if field.name == 'titleSort':
assert collection.titleSort == 'New Title Sort'
assert field.locked == True
collection.edit(**{'titleSort.value': collectionTitleSort, 'titleSort.locked': 0})
def test_search_with_weird_a(plex): def test_search_with_weird_a(plex):
ep_title = "Coup de Grâce" ep_title = "Coup de Grâce"
result_root = plex.search(ep_title) result_root = plex.search(ep_title)