forked from pool/python-Django
- Update to 4.1: This is just a summary. Full release notes are available at https://docs.djangoproject.com/en/4.1/releases/4.1/ + Django 4.1 supports Python 3.8, 3.9, and 3.10 + Asynchronous handlers for class-based views + Asynchronous ORM interface + Validation of Constraints + Form rendering accessibility + CSRF_COOKIE_MASKED setting - Drop fix_test_custom_fields_SQLite.patch (already merged) OBS-URL: https://build.opensuse.org/request/show/992592 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-Django?expand=0&rev=110
34 lines
1.5 KiB
Diff
34 lines
1.5 KiB
Diff
From 6a5640efabd6a01c827462c979a2dbf5cf6c86da Mon Sep 17 00:00:00 2001
|
|
From: Alberto Planas <aplanas@suse.com>
|
|
Date: Wed, 3 Aug 2022 15:42:39 +0200
|
|
Subject: [PATCH] Fixed #33887 -- Added {version} in asserted test URL
|
|
|
|
---
|
|
tests/migrations/test_commands.py | 9 +++++----
|
|
1 file changed, 5 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/tests/migrations/test_commands.py b/tests/migrations/test_commands.py
|
|
index a3e1efc924..0d4fb52bbb 100644
|
|
--- a/tests/migrations/test_commands.py
|
|
+++ b/tests/migrations/test_commands.py
|
|
@@ -3005,11 +3005,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)
|
|
--
|
|
2.37.1
|
|
|