mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
committed by
Tim Graham
parent
c0c78f1b70
commit
f7969b0920
@@ -590,8 +590,8 @@ class AutodetectorTests(TestCase):
|
||||
# Right number/type of migrations?
|
||||
self.assertNumberMigrations(changes, 'eggs', 1)
|
||||
self.assertOperationTypes(changes, 'eggs', 0, ["CreateModel", "CreateModel", "AlterUniqueTogether"])
|
||||
self.assertFalse("unique_together" in changes['eggs'][0].operations[0].options)
|
||||
self.assertFalse("unique_together" in changes['eggs'][0].operations[1].options)
|
||||
self.assertNotIn("unique_together", changes['eggs'][0].operations[0].options)
|
||||
self.assertNotIn("unique_together", changes['eggs'][0].operations[1].options)
|
||||
# Right dependencies?
|
||||
self.assertEqual(changes['eggs'][0].dependencies, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user