mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Add test for creating M2Ms
This commit is contained in:
parent
f8297f6323
commit
a758c9c186
3 changed files with 38 additions and 13 deletions
|
@ -85,7 +85,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"
|
||||
|
@ -102,7 +102,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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue