Skip to content

Commit

Permalink
Ran black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bauer committed Jul 24, 2024
1 parent 02db15b commit ff837a9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ class NoteFilter(FilterSet):
class RelatedViewSet(views.NoteViewSet):
filterset_class = NoteFilter

assert_html_options = list(map(lambda aria: f"""
assert_html_options = list(
map(
lambda aria: f"""
<h2>Field filters</h2>
<form class="form" action="" method="get">
<ul class="errorlist">
Expand Down Expand Up @@ -263,7 +265,10 @@ class RelatedViewSet(views.NoteViewSet):
<button type="submit" class="btn btn-primary">Submit</button>
</form>
""" , ['', 'aria-invalid="true"']))
""",
["", 'aria-invalid="true"'],
)
)

# Django >5.0 adds aria-invalid="true", but want old Django version to pass as well
if Version(django.__version__) < Version("5.0"):
Expand Down

0 comments on commit ff837a9

Please sign in to comment.