1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Add unique_together altering operation

This commit is contained in:
Andrew Godwin
2013-07-02 11:19:02 +01:00
parent 310cdf492d
commit 67dcea711e
7 changed files with 84 additions and 17 deletions

View File

@@ -83,7 +83,7 @@ class AutodetectorTests(TestCase):
# Right action?
action = migration.operations[0]
self.assertEqual(action.__class__.__name__, "CreateModel")
self.assertEqual(action.name, "Author")
self.assertEqual(action.name, "author")
def test_old_model(self):
"Tests deletion of old models"
@@ -100,7 +100,7 @@ class AutodetectorTests(TestCase):
# Right action?
action = migration.operations[0]
self.assertEqual(action.__class__.__name__, "DeleteModel")
self.assertEqual(action.name, "Author")
self.assertEqual(action.name, "author")
def test_add_field(self):
"Tests autodetection of new fields"