From cd09524f27b83c0ca9dabafa81265e8d8abd252a Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 12 Oct 2016 21:19:56 -0400 Subject: Fixed #27200 -- Provided makemigration's allow_migrate() with model_name. --- tests/migrations/test_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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): -- cgit v1.3