From 315412ff5de97e5f0b01059ad5742942773ee1ff Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 5 Oct 2022 09:23:58 +0100 Subject: [PATCH] Remove unused import and update query count --- website/common/utils.py | 1 - website/search/tests.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/website/common/utils.py b/website/common/utils.py index e75bb60..06a9e38 100644 --- a/website/common/utils.py +++ b/website/common/utils.py @@ -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"] diff --git a/website/search/tests.py b/website/search/tests.py index 3ed11ab..a072122 100644 --- a/website/search/tests.py +++ b/website/search/tests.py @@ -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" )