From 91cc5fd4cce58361aab9554a6bb695c854df641a Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 12 Oct 2016 21:19:56 -0400 Subject: [1.10.x] Fixed #27200 -- Provided makemigration's allow_migrate() with model_name. Backport of cd09524f27b83c0ca9dabafa81265e8d8abd252a from master --- 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 7ff09de84e..da10f834f0 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