mirror of
https://github.com/django/django.git
synced 2025-11-01 04:17:59 +00:00
Made assertions in invalid_models_tests consistent.
This commit is contained in:
parent
169c3b3e07
commit
f816ceedf1
5 changed files with 202 additions and 409 deletions
|
|
@ -25,6 +25,4 @@ class BackendSpecificChecksTests(SimpleTestCase):
|
|||
|
||||
field = Model._meta.get_field('field')
|
||||
with mock.patch.object(connections['default'].validation, 'check_field', return_value=[error]):
|
||||
errors = field.check()
|
||||
|
||||
self.assertEqual(errors, [error])
|
||||
self.assertEqual(field.check(), [error])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue