Skip to content

Commit

Permalink
Reverse check on DJANGO3 to make Django 4 default code
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Jun 27, 2023
1 parent 79d467f commit 454b38c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def test_radioset_inline(self):
res = render_template_with_form("{% bootstrap_form form layout='inline' %}", {"form": form})
expected = """
<div class="form-group bootstrap3-req">
<label class="sr-only" for="id_radio_0">Radio</label>
<label class="sr-only">Radio</label>
<div id="id_radio">
<div class="radio">
<label for="id_radio_0">
Expand All @@ -545,9 +545,9 @@ def test_radioset_inline(self):
</div>
</div>
"""
if not DJANGO3:
if DJANGO3:
expected = expected.replace(
'<label class="sr-only" for="id_radio_0">Radio</label>',
'<label class="sr-only">Radio</label>',
'<label class="sr-only" for="id_radio_0">Radio</label>',
)
self.assertHTMLEqual(res, expected)

0 comments on commit 454b38c

Please sign in to comment.