Permalink
Browse files

Made assertions in invalid_models_tests consistent.

  • Loading branch information...
adamchainz authored and timgraham committed Jul 11, 2017
1 parent 169c3b3 commit f816ceedf1ae13bec22363f6d78de53d3f60c3e9
@@ -25,6 +25,4 @@ class Model(models.Model):
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])
@@ -17,5 +17,4 @@ class Model(models.Model):
other_field = models.IntegerField()
field = Model._meta.get_field('field')
- errors = field.check()
- self.assertEqual(errors, [])
+ self.assertEqual(field.check(), [])
Oops, something went wrong.

0 comments on commit f816cee

Please sign in to comment.