summaryrefslogtreecommitdiff
path: root/docs/tests
diff options
context:
space:
mode:
authorCharles Roelli <charles@aurox.ch>2026-05-15 13:15:04 +0000
committerCharles Roelli <charles@aurox.ch>2026-05-15 13:15:04 +0000
commit431a34f195c6dff10c57c468694800c68d8399a5 (patch)
treea0fd8eebbff5221d2f72c3f841a956a95642ce13 /docs/tests
parentc7c0a47954663d1d8661f085b25c658817b5122d (diff)
Use the database for docs renderingissue-1630
Co-authored-by: Paolo Melchiorre <pmelchiorre@rippling.com>
Diffstat (limited to 'docs/tests')
-rw-r--r--docs/tests/test_templates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tests/test_templates.py b/docs/tests/test_templates.py
index 22abd057..5f28fc86 100644
--- a/docs/tests/test_templates.py
+++ b/docs/tests/test_templates.py
@@ -214,12 +214,12 @@ class TemplateTestCase(TestCase):
def test_opengraph_title(self):
doc = Document.objects.create(
+ metadata={"body": "test body"},
release=DocumentRelease.objects.create(
lang=settings.DEFAULT_LANGUAGE_CODE,
release=Release.objects.create(version="5.0"),
),
)
- doc.body = "test body" # avoids trying to load the underlying physical file
for title, expected in [
("test title", "test title"),