mirror of
https://github.com/django-components/django-components.git
synced 2025-10-17 17:27:13 +00:00
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:
parent
23d91218bd
commit
2684b41c07
7 changed files with 106 additions and 30 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue