Add test for collection search

This commit is contained in:
JonnyWong16 2021-05-20 20:16:20 -07:00
parent b9a9abb129
commit 4c75e09640
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -329,13 +329,15 @@ def test_library_MovieSection_hubSearch(movies):
assert movies.hubSearch("Elephants Dream") assert movies.hubSearch("Elephants Dream")
def test_library_MovieSection_search(movies, movie): def test_library_MovieSection_search(movies, movie, collection):
movie.addLabel("test_search") movie.addLabel("test_search")
movie.addCollection("test_search") movie.addCollection("test_search")
_test_library_search(movies, movie) _test_library_search(movies, movie)
movie.removeLabel("test_search", locked=False) movie.removeLabel("test_search", locked=False)
movie.removeCollection("test_search", locked=False) movie.removeCollection("test_search", locked=False)
_test_library_search(movies, collection)
def test_library_MovieSection_advancedSearch(movies, movie): def test_library_MovieSection_advancedSearch(movies, movie):
advancedFilters = { advancedFilters = {