diff options
| author | Tim Graham <timograham@gmail.com> | 2016-08-18 18:17:01 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-23 17:39:58 -0400 |
| commit | ad25fe73506d80ffcaac135ad0a8d09552b70d70 (patch) | |
| tree | ab2f7dd65bd4729a2b27b4482e05ee9f0c5d0d2e /tests | |
| parent | 80c03b06ad1461c1a07091806dc0414a4e98905e (diff) | |
Fixed #27089 -- Added database alias to InconsistentMigrationHistory message.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_loader.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py index b46f35f7ed..b8c2cd8142 100644 --- a/tests/migrations/test_loader.py +++ b/tests/migrations/test_loader.py @@ -378,7 +378,10 @@ class LoaderTests(TestCase): loader.check_consistent_history(connection) recorder = MigrationRecorder(connection) recorder.record_applied('migrations', '0002_second') - msg = "Migration migrations.0002_second is applied before its dependency migrations.0001_initial" + msg = ( + "Migration migrations.0002_second is applied before its dependency " + "migrations.0001_initial on database 'default'." + ) with self.assertRaisesMessage(InconsistentMigrationHistory, msg): loader.check_consistent_history(connection) |
