mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Prompt about renames rather than doing them automatically
This commit is contained in:
parent
92a10f5552
commit
cca40703df
2 changed files with 21 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue