Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 10, 2025
1 parent a7be318 commit 567f65a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,14 @@ def test_search_type_filter(self):
"Only 1 result for <em>generic</em> in version 5.1",
html=True,
)
self.assertContains(response,"tab active", count=1)
self.assertContains(response, "tab active", count=1)
self.assertContains(
response,
f'<a class="tab active" aria-disabled="true" aria-current="page">{title}</a>',
html=True,
)
self.assertContains(
response,
'<a class="tab" href="?q=generic">All</a>',
html=True
response, '<a class="tab" href="?q=generic">All</a>', html=True
)

with self.subTest(type="all"):
Expand All @@ -259,7 +257,9 @@ def test_search_type_filter(self):
)
self.assertContains(response, "tab active", count=1)
self.assertContains(
response, '<a class="tab active" aria-disabled="true" aria-current="page">All</a>', html=True
response,
'<a class="tab active" aria-disabled="true" aria-current="page">All</a>',
html=True,
)


Expand Down

0 comments on commit 567f65a

Please sign in to comment.