feat: @template_tag and refactor how template tags are defined (#910)

This commit is contained in:
Juro Oravec 2025-01-20 22:47:04 +01:00 committed by GitHub
parent a047908189
commit f908197850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 2149 additions and 1148 deletions

View file

@ -745,10 +745,7 @@ class SpreadOperatorTests(BaseTestCase):
template1 = Template(template_str1)
with self.assertRaisesMessage(
TypeError,
"got multiple values for keyword argument 'x'",
):
with self.assertRaisesMessage(SyntaxError, "keyword argument repeated"):
template1.render(context)
# But, similarly to python, we can merge multiple **kwargs by instead