refactor: use the tag parser to streamline the tag handlers (#827)

This commit is contained in:
Juro Oravec 2024-12-13 09:00:03 +01:00 committed by GitHub
parent db4ca8b74f
commit 894dee3cad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 351 additions and 429 deletions

View file

@ -128,7 +128,7 @@ class HtmlAttrsTests(BaseTestCase):
template = Template(self.template_str)
with self.assertRaisesMessage(
TemplateSyntaxError, "'html_attrs' received some positional argument(s) after some keyword"
TemplateSyntaxError, "'html_attrs' received too many positional arguments: ['class']"
):
template.render(Context({"class_var": "padding-top-8"}))