fix: various fixes for inject/provide and html_attrs (#541)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Juro Oravec 2024-07-08 10:25:38 +02:00 committed by GitHub
parent 23d91218bd
commit 2684b41c07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 106 additions and 30 deletions

View file

@ -233,6 +233,7 @@ class HtmlAttrsTests(BaseTestCase):
return {"attrs": attrs}
template = Template(self.template_str)
with self.assertRaisesMessage(TemplateSyntaxError, "Received argument 'attrs' both as a regular input"):
template.render(Context({"class_var": "padding-top-8"}))
@ -250,6 +251,7 @@ class HtmlAttrsTests(BaseTestCase):
return {"attrs": attrs}
template = Template(self.template_str)
with self.assertRaisesMessage(
TemplateSyntaxError,
"Received argument 'defaults' both as a regular input",