diff options
author | Alberto Planas <aplanas@gmail.com> | 2022-08-03 16:36:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 16:36:04 +0200 |
commit | 4e13b40a764cfdae50416338c5d077e9d9a6d0f1 (patch) | |
tree | 6a35ce3b885f8dbd6d08f3a749a2b190b6ee5078 /tests/migrations | |
parent | cb791a2540c289390b68a3ea9c6a79476890bab2 (diff) | |
download | django-4e13b40a764cfdae50416338c5d077e9d9a6d0f1.tar.gz |
Fixed #33887 -- Fixed test_fails_squash_migration_manual_porting() on final tags.
Regression in 7c318a8bdd66f8c5241864c9970dddb525d0ca4c.
Diffstat (limited to 'tests/migrations')
-rw-r--r-- | tests/migrations/test_commands.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py index 3c98ddd8db..61a914f8ce 100644 --- a/tests/migrations/test_commands.py +++ b/tests/migrations/test_commands.py @@ -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) |