mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Prompt about renames rather than doing them automatically
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user