mirror of
https://github.com/django-components/django-components.git
synced 2025-08-03 13:58:16 +00:00
refactor: remove use of eval for node validation (#944)
This commit is contained in:
parent
de32d449d9
commit
f52f12579b
5 changed files with 216 additions and 101 deletions
|
@ -737,7 +737,7 @@ class SpreadOperatorTests(BaseTestCase):
|
|||
|
||||
template1 = Template(template_str1)
|
||||
|
||||
with self.assertRaisesMessage(SyntaxError, "keyword argument repeated"):
|
||||
with self.assertRaisesMessage(TypeError, "got multiple values for argument 'x'"):
|
||||
template1.render(context)
|
||||
|
||||
# But, similarly to python, we can merge multiple **kwargs by instead
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue