mirror of
https://github.com/Hopiu/django.git
synced 2026-04-23 16:24:50 +00:00
Fixed #33887 -- Fixed test_fails_squash_migration_manual_porting() on final tags.
Regression in 7c318a8bdd.
This commit is contained in:
parent
cb791a2540
commit
4e13b40a76
1 changed files with 5 additions and 4 deletions
|
|
@ -3107,11 +3107,12 @@ class OptimizeMigrationTests(MigrationTestBase):
|
|||
with self.temporary_migration_module(
|
||||
module="migrations.test_migrations_manual_porting"
|
||||
) as migration_dir:
|
||||
version = get_docs_version()
|
||||
msg = (
|
||||
"Migration will require manual porting but is already a squashed "
|
||||
"migration.\nTransition to a normal migration first: "
|
||||
"https://docs.djangoproject.com/en/dev/topics/migrations/"
|
||||
"#squashing-migrations"
|
||||
f"Migration will require manual porting but is already a squashed "
|
||||
f"migration.\nTransition to a normal migration first: "
|
||||
f"https://docs.djangoproject.com/en/{version}/topics/migrations/"
|
||||
f"#squashing-migrations"
|
||||
)
|
||||
with self.assertRaisesMessage(CommandError, msg):
|
||||
call_command("optimizemigration", "migrations", "0004", stdout=out)
|
||||
|
|
|
|||
Loading…
Reference in a new issue