summaryrefslogtreecommitdiff
path: root/blog
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-10-17 18:54:18 +0200
committerBaptiste Mispelon <bmispelon@gmail.com>2025-11-21 22:46:02 +0100
commite81dd718cba062f6ace41428278621429cb2d7fc (patch)
treec5c07718ec6df1ec9e832426740bdf2f1a2da784 /blog
parent483ac8dbc089cad2f8e23b5c5b0f4a128f950ab6 (diff)
Moved docs search bar to top navigation in prep for global search.
Diffstat (limited to 'blog')
-rw-r--r--blog/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/blog/tests.py b/blog/tests.py
index 39cf4824..f67bc7ea 100644
--- a/blog/tests.py
+++ b/blog/tests.py
@@ -13,6 +13,8 @@ from django.test.utils import override_settings
from django.urls import reverse
from django.utils import timezone, translation
+from djangoproject.tests import ReleaseMixin
+
from .models import ContentFormat, Entry, Event, ImageUpload
from .sitemaps import WeblogSitemap
@@ -210,7 +212,7 @@ class EventTestCase(DateTimeMixin, TestCase):
)
-class ViewsTestCase(DateTimeMixin, TestCase):
+class ViewsTestCase(ReleaseMixin, DateTimeMixin, TestCase):
def test_detail_view_html_meta(self):
headline = "Pride and Prejudice - Review"
author = "Jane Austen"
@@ -474,7 +476,7 @@ class ViewsTestCase(DateTimeMixin, TestCase):
+ ["django.middleware.cache.FetchFromCacheMiddleware"]
),
)
-class ViewsCachingTestCase(DateTimeMixin, TestCase):
+class ViewsCachingTestCase(ReleaseMixin, DateTimeMixin, TestCase):
def test_drafts_have_no_cache_headers(self):
"""
Draft (unpublished) entries have no-cache headers.