mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
Corrected test_update_or_create_with_model_property_defaults test.
This commit is contained in:
parent
c2cc80756b
commit
67bc2f1b99
1
AUTHORS
1
AUTHORS
@ -901,6 +901,7 @@ answer newbie questions, and generally made Django that much better:
|
|||||||
smurf@smurf.noris.de
|
smurf@smurf.noris.de
|
||||||
sopel
|
sopel
|
||||||
Sreehari K V <sreeharivijayan619@gmail.com>
|
Sreehari K V <sreeharivijayan619@gmail.com>
|
||||||
|
Sridhar Marella <sridhar562345@gmail.com>
|
||||||
Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>
|
Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>
|
||||||
Stanislas Guerra <stan@slashdev.me>
|
Stanislas Guerra <stan@slashdev.me>
|
||||||
Stanislaus Madueke
|
Stanislaus Madueke
|
||||||
|
@ -367,7 +367,7 @@ class UpdateOrCreateTests(TestCase):
|
|||||||
|
|
||||||
def test_update_or_create_with_model_property_defaults(self):
|
def test_update_or_create_with_model_property_defaults(self):
|
||||||
"""Using a property with a setter implemented is allowed."""
|
"""Using a property with a setter implemented is allowed."""
|
||||||
t, _ = Thing.objects.get_or_create(
|
t, _ = Thing.objects.update_or_create(
|
||||||
defaults={"capitalized_name_property": "annie"}, pk=1
|
defaults={"capitalized_name_property": "annie"}, pk=1
|
||||||
)
|
)
|
||||||
self.assertEqual(t.name, "Annie")
|
self.assertEqual(t.name, "Annie")
|
||||||
|
Loading…
Reference in New Issue
Block a user