1
0
mirror of https://github.com/django/django.git synced 2025-08-21 01:09:13 +00:00

Fixed incorrectly concatenated string in SimpleBlockTagTests.test_simple_block_tag_with_context_missing_content().

This commit is contained in:
Mike Edmunds 2025-07-21 13:09:15 -07:00 committed by Sarah Boyce
parent 78fac1b047
commit 0f5b573d3d

View File

@ -514,9 +514,11 @@ class SimpleBlockTagTests(TagTestCase):
def test_simple_block_tag_with_context_missing_content(self): def test_simple_block_tag_with_context_missing_content(self):
# The 'content' parameter must be present when takes_context is True # The 'content' parameter must be present when takes_context is True
msg = "'simple_block_tag_with_context_without_content' is decorated with " msg = (
"takes_context=True so it must have a first argument of 'context' and a " "'simple_block_tag_with_context_without_content' is decorated with "
"second argument of 'content'" "takes_context=True so it must have a first argument of 'context' and a "
"second argument of 'content'"
)
with self.assertRaisesMessage(TemplateSyntaxError, msg): with self.assertRaisesMessage(TemplateSyntaxError, msg):
self.engine.from_string( self.engine.from_string(
"{% load custom %}{% simple_block_tag_with_context_without_content %}" "{% load custom %}{% simple_block_tag_with_context_without_content %}"