Remove unused import and update query count
This commit is contained in:
parent
ee4914324c
commit
315412ff5d
2 changed files with 1 additions and 2 deletions
|
@ -9,7 +9,6 @@ from django.utils.text import slugify, smart_split
|
||||||
from more_itertools import ilen
|
from more_itertools import ilen
|
||||||
from wagtail.models import Page
|
from wagtail.models import Page
|
||||||
from wagtail.models import get_page_models as get_wagtail_page_models
|
from wagtail.models import get_page_models as get_wagtail_page_models
|
||||||
from wagtail.query import PageQuerySet
|
|
||||||
|
|
||||||
HEADER_TAGS = ["h2", "h3", "h4", "h5", "h6"]
|
HEADER_TAGS = ["h2", "h3", "h4", "h5", "h6"]
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ class SearchPageResultsTestCase(TestCase):
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_too_high_page(self) -> None:
|
def test_too_high_page(self) -> None:
|
||||||
with self.assertNumQueries(50):
|
with self.assertNumQueries(45):
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
self.url, {"q": "post", "page": 3}, HTTP_HX_REQUEST="true"
|
self.url, {"q": "post", "page": 3}, HTTP_HX_REQUEST="true"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue