@@ -608,7 +608,11 @@ def test_grouped_checkboxes_radios(self):
608
608
form = GroupedChoiceForm ()
609
609
form .helper = FormHelper ()
610
610
form .helper .layout = Layout ("checkbox_select_multiple" )
611
- assert parse_form (form ) == parse_expected ("test_grouped_checkboxes.html" )
611
+ if django .VERSION < (5 , 2 ):
612
+ expected = "test_grouped_checkboxes_lt52.html"
613
+ else :
614
+ expected = "test_grouped_checkboxes.html"
615
+ assert parse_form (form ) == parse_expected (expected )
612
616
form .helper .layout = Layout ("radio" )
613
617
assert parse_form (form ) == parse_expected ("test_grouped_radios.html" )
614
618
@@ -617,13 +621,17 @@ def test_grouped_checkboxes_radios(self):
617
621
form .helper .layout = Layout ("checkbox_select_multiple" )
618
622
if django .VERSION < (5 , 0 ):
619
623
expected = "test_grouped_checkboxes_failing_lt50.html"
624
+ elif django .VERSION < (5 , 2 ):
625
+ expected = "test_grouped_checkboxes_failing_lt52.html"
620
626
else :
621
627
expected = "test_grouped_checkboxes_failing.html"
622
628
assert parse_form (form ) == parse_expected (expected )
623
629
624
630
form .helper .layout = Layout ("radio" )
625
631
if django .VERSION < (5 , 0 ):
626
632
expected = "test_grouped_radios_failing_lt50.html"
633
+ elif django .VERSION < (5 , 2 ):
634
+ expected = "test_grouped_radios_failing_lt52.html"
627
635
else :
628
636
expected = "test_grouped_radios_failing.html"
629
637
assert parse_form (form ) == parse_expected (expected )
0 commit comments