summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-10-12 21:19:56 -0400
committerTim Graham <timograham@gmail.com>2016-10-13 11:04:58 -0400
commitcd09524f27b83c0ca9dabafa81265e8d8abd252a (patch)
tree03a3d7b1aae0883e80d992f6d0b35ba012f1e521 /tests
parent51b83d9e5113ea5b81d04f4d117bd5acd3c1b822 (diff)
Fixed #27200 -- Provided makemigration's allow_migrate() with model_name.
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py
index acc4aee83a..6681ceecbc 100644
--- a/tests/migrations/test_commands.py
+++ b/tests/migrations/test_commands.py
@@ -638,7 +638,7 @@ class MakeMigrationsTests(MigrationTestBase):
with self.settings(DATABASE_ROUTERS=['migrations.routers.TestRouter']):
with mock.patch.object(TestRouter, 'allow_migrate', return_value=False) as allow_migrate:
call_command('makemigrations', 'migrations', verbosity=0)
- allow_migrate.assert_called_with('other', 'migrations')
+ allow_migrate.assert_called_with('other', 'migrations', model_name='UnicodeModel')
self.assertEqual(ensure_schema.call_count, 4)
def test_failing_migration(self):