Remove unused import and update query count

This commit is contained in:
Jake Howard 2022-10-05 09:23:58 +01:00
parent ee4914324c
commit 315412ff5d
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 1 additions and 2 deletions

View file

@ -9,7 +9,6 @@ from django.utils.text import slugify, smart_split
from more_itertools import ilen
from wagtail.models import Page
from wagtail.models import get_page_models as get_wagtail_page_models
from wagtail.query import PageQuerySet
HEADER_TAGS = ["h2", "h3", "h4", "h5", "h6"]

View file

@ -89,7 +89,7 @@ class SearchPageResultsTestCase(TestCase):
)
def test_too_high_page(self) -> None:
with self.assertNumQueries(50):
with self.assertNumQueries(45):
response = self.client.get(
self.url, {"q": "post", "page": 3}, HTTP_HX_REQUEST="true"
)