Skip to content

Commit

Permalink
Add test to lock/unlock all posters in a library
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 committed Dec 20, 2021
1 parent 50ac4db commit 229c028
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,19 @@ def test_library_editAdvanced_default(movies):
assert str(setting.value) == str(setting.default)


def test_library_lockUnlockAllFields(movies):
for movie in movies.all():
assert 'thumb' not in [f.name for f in movie.fields]

movies.lockAllField('thumb')
for movie in movies.all():
assert 'thumb' in [f.name for f in movie.fields]

movies.unlockAllField('thumb')
for movie in movies.all():
assert 'thumb' not in [f.name for f in movie.fields]


def test_search_with_weird_a(plex, tvshows):
ep_title = "Coup de Grâce"
result_root = plex.search(ep_title)
Expand Down

0 comments on commit 229c028

Please sign in to comment.