@@ -49,7 +49,7 @@ def results(_, search_query):
4949 session_id = hash_params (params )
5050
5151 with testing .mock_keyboard ("Rock" ):
52- listitems = list ( search .saved_searches .test (first_load = True , execute_delayed = True , ** params ) )
52+ listitems = search .saved_searches .test (first_load = True , execute_delayed = True , ** params )
5353
5454 with storage .PersistentDict (search .SEARCH_DB ) as db :
5555 self .assertIn (session_id , db )
@@ -70,8 +70,6 @@ def results(_, search_query):
7070
7171 with testing .mock_keyboard ("Rock" ):
7272 listitems = search .saved_searches .test (first_load = True , execute_delayed = True , ** params )
73- if not isinstance (listitems , bool ):
74- listitems = list (listitems )
7573
7674 with storage .PersistentDict (search .SEARCH_DB ) as db :
7775 self .assertIn (session_id , db )
@@ -90,8 +88,6 @@ def results(_, search_query):
9088
9189 with testing .mock_keyboard ("" ):
9290 listitems = search .saved_searches .test (first_load = True , execute_delayed = True , ** params )
93- if not isinstance (listitems , bool ):
94- listitems = list (listitems )
9591
9692 with storage .PersistentDict (search .SEARCH_DB ) as db :
9793 self .assertIn (session_id , db )
@@ -111,8 +107,6 @@ def results(_, search_query):
111107
112108 with testing .mock_keyboard ("Rock" ):
113109 listitems = search .saved_searches .test (search = True , execute_delayed = True , ** params )
114- if not isinstance (listitems , bool ):
115- listitems = list (listitems )
116110
117111 with storage .PersistentDict (search .SEARCH_DB ) as db :
118112 self .assertIn (session_id , db )
@@ -138,7 +132,7 @@ def results(_, search_query):
138132 db .flush ()
139133
140134 with testing .mock_keyboard ("Rock" ):
141- listitems = list ( search .saved_searches .test (search = True , execute_delayed = True , ** params ) )
135+ listitems = search .saved_searches .test (search = True , execute_delayed = True , ** params )
142136
143137 with storage .PersistentDict (search .SEARCH_DB ) as db :
144138 self .assertIn (session_id , db )
@@ -164,7 +158,7 @@ def results(_, search_query):
164158 db .flush ()
165159
166160 with testing .mock_keyboard ("" ):
167- listitems = list ( search .saved_searches .test (search = True , execute_delayed = True , ** params ) )
161+ listitems = search .saved_searches .test (search = True , execute_delayed = True , ** params )
168162
169163 with storage .PersistentDict (search .SEARCH_DB ) as db :
170164 self .assertIn (session_id , db )
0 commit comments