diff options
| author | Tim Graham <timograham@gmail.com> | 2016-10-12 21:19:56 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-13 11:42:56 -0400 |
| commit | 91cc5fd4cce58361aab9554a6bb695c854df641a (patch) | |
| tree | fc2f07a87a3b3ad8c3802fa26708a36e111f2791 /tests | |
| parent | e781197d1cc2dcef850104acd0baac1c748d40d7 (diff) | |
[1.10.x] Fixed #27200 -- Provided makemigration's allow_migrate() with model_name.
Backport of cd09524f27b83c0ca9dabafa81265e8d8abd252a from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
