diff --git a/tests/test_library.py b/tests/test_library.py index bc79e9aec..a81359fc2 100644 --- a/tests/test_library.py +++ b/tests/test_library.py @@ -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)