mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-21 19:23:05 +00:00
add test for confirming edit and field locked on a collection
This commit is contained in:
parent
f5e2021bff
commit
15f76e8480
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue