From 2980c128bede0c104cc02404f1cf242ada710c9e Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Tue, 12 Mar 2024 11:55:31 +0100 Subject: [PATCH] add django 5.0 for tests --- .github/workflows/test.yml | 1 + tests/requirements/dj50_cms41.txt | 7 +++++++ tests/settings.py | 1 + tests/test_monkeypatch.py | 3 +-- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 tests/requirements/dj50_cms41.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d468aea2..ecdc1921 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,7 @@ jobs: matrix: python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two requirements-file: [ + dj50_cms41.txt, dj42_cms41.txt, dj32_cms40.txt, ] diff --git a/tests/requirements/dj50_cms41.txt b/tests/requirements/dj50_cms41.txt new file mode 100644 index 00000000..53ea1d28 --- /dev/null +++ b/tests/requirements/dj50_cms41.txt @@ -0,0 +1,7 @@ +-r ./requirements_base.txt + +Django>=5.0,<5.1 +django-cms>=4.1,<4.2 + +djangocms-versioning>=2.0.0 +djangocms-alias>=2.0.0 diff --git a/tests/settings.py b/tests/settings.py index d9a7fea6..067e6670 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -1,5 +1,6 @@ from cms import __version__ as cms_version + HELPER_SETTINGS = { "SECRET_KEY": "moderationtestsuitekey", "INSTALLED_APPS": [ diff --git a/tests/test_monkeypatch.py b/tests/test_monkeypatch.py index 29b73e43..c6c512ed 100644 --- a/tests/test_monkeypatch.py +++ b/tests/test_monkeypatch.py @@ -6,8 +6,7 @@ from cms.models import PageContent from cms.models.fields import PlaceholderRelationField -from djangocms_versioning import __version__ as versioning_version -from djangocms_versioning import versionables +from djangocms_versioning import __version__ as versioning_version, versionables from djangocms_versioning.admin import VersionAdmin from djangocms_versioning.constants import DRAFT, PUBLISHED from djangocms_versioning.test_utils.factories import (