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

Prompt about renames rather than doing them automatically

This commit is contained in:
Andrew Godwin
2013-06-21 15:32:15 +01:00
parent 92a10f5552
commit cca40703df
2 changed files with 21 additions and 12 deletions

View File

@@ -155,7 +155,7 @@ class AutodetectorTests(TestCase):
# Make state
before = self.make_project_state([self.author_name])
after = self.make_project_state([self.author_name_renamed])
autodetector = MigrationAutodetector(before, after)
autodetector = MigrationAutodetector(before, after, MigrationQuestioner({"ask_rename": True}))
changes = autodetector.changes()
# Right number of migrations?
self.assertEqual(len(changes['testapp']), 1)