@@ -271,9 +271,7 @@ def test_selected_option(self, db):
271271 in not_required_field .widget .render ("primary_genre" , 1 )
272272 or '<option value="1" selected>One</option>'
273273 in not_required_field .widget .render ("primary_genre" , 1 )
274- ), not_required_field .widget .render (
275- "primary_genre" , 1
276- )
274+ ), not_required_field .widget .render ("primary_genre" , 1 )
277275
278276 def test_many_selected_option (self , db , genres ):
279277 field = HeavySelect2MultipleWidgetForm ().fields ["genres" ]
@@ -296,9 +294,9 @@ def test_many_selected_option(self, db, genres):
296294 pk = 2 , value = "Two"
297295 )
298296
299- assert (
300- selected_option in widget_output or selected_option_a in widget_output
301- ), widget_output
297+ assert selected_option in widget_output or selected_option_a in widget_output , (
298+ widget_output
299+ )
302300 assert selected_option2 in widget_output or selected_option2a in widget_output
303301
304302 @pytest .mark .selenium
@@ -412,9 +410,9 @@ def test_selected_option(self, db, genres):
412410 pk = genre2 .pk , value = force_str (genre2 )
413411 )
414412
415- assert (
416- selected_option in widget_output or selected_option_a in widget_output
417- ), widget_output
413+ assert selected_option in widget_output or selected_option_a in widget_output , (
414+ widget_output
415+ )
418416 assert unselected_option not in widget_output
419417
420418 def test_selected_option_label_from_instance (self , db , genres ):
0 commit comments