summaryrefslogtreecommitdiff
path: root/docs/tests/test_templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tests/test_templates.py')
-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"),