From e5794b0cd6d6a38b4e4fc91bbbc70c32e8df88c3 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Sun, 27 Oct 2024 11:32:33 +0100 Subject: [PATCH] Update migration test for v3 --- tests/test_migrations.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/test_migrations.py b/tests/test_migrations.py index 0950c0c3..eb34fcd6 100644 --- a/tests/test_migrations.py +++ b/tests/test_migrations.py @@ -4,18 +4,14 @@ from unittest import skipIf from django.core.management import call_command -from django.forms import model_to_dict from django.test import TestCase, override_settings from cms import __version__ as cms_version -from cms.api import create_page -from cms.models import PageUrl from django_test_migrations.contrib.unittest_case import MigratorTestCase from djangocms_link import __version__ from djangocms_link.helpers import get_link -from tests.helpers import get_filer_file class MigrationTestCase(TestCase): @@ -40,7 +36,10 @@ def test_for_missing_migrations(self): if status_code == '1' and "djangocms_link" in output: self.fail(f'There are missing migrations:\n {output.getvalue()}') -@skipIf(__version__ >= '5' or cms_version < "4", "Migration has already been tested before releasing version 5") +@skipIf( + __version__ >= '5' or cms_version < "4", + "Migration has already been tested before releasing version 5", +) class MigrationToVersion5(MigratorTestCase): migrate_from = ('djangocms_link', '0016_alter_link_cmsplugin_ptr') migrate_to = ('djangocms_link', '0018_remove_link_anchor_remove_link_external_link_and_more')