mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #25629 -- Added arity class attribute to Func expressions
This commit is contained in:
committed by
Claude Paroz
parent
03c6ad7ad4
commit
0a26121797
@@ -389,6 +389,9 @@ class FunctionTests(TestCase):
|
||||
lambda a: (a.lower_name, a.name)
|
||||
)
|
||||
|
||||
with self.assertRaisesMessage(TypeError, "'Lower' takes exactly 1 argument (2 given)"):
|
||||
Author.objects.update(name=Lower('name', 'name'))
|
||||
|
||||
def test_upper(self):
|
||||
Author.objects.create(name='John Smith', alias='smithj')
|
||||
Author.objects.create(name='Rhonda')
|
||||
|
||||
Reference in New Issue
Block a user