diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3378b1a..6456589 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: matrix: python-version: ["3.13"] django: ["5.1"] - wagtail: ["6.3"] + wagtail: ["6.4"] db: ["postgres"] services: @@ -77,7 +77,7 @@ jobs: matrix: python-version: ["3.11", "3.12"] django: ["4.2"] - wagtail: ["5.2", "6.1", "6.2"] + wagtail: ["5.2", "6.3"] db: ["sqlite"] steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7672069..8bb8474 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.7] - unreleased +## Unreleased + +### Added + +- Support for Wagtail 6.4 + +### Changed + +- Image chooser tests now include new `default_alt_text` property + +## Removed + +- Wagtail versions (6.0-6.2) from tox testing matrix + +## [0.7] - 2025-01-15 ### Added diff --git a/README.md b/README.md index 7a8494f..4c408bf 100644 --- a/README.md +++ b/README.md @@ -366,4 +366,4 @@ Supported versions: - Python 3.11, 3.12, 3.13 - Django 4.2, 5.0, 5.1 -- Wagtail 5.2 (LTS), 6.0, 6.1, 6.2, 6.3 (LTS) +- Wagtail 5.2 (LTS), 6.3 (LTS), 6.4 diff --git a/pyproject.toml b/pyproject.toml index 11b694b..20c0470 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Framework :: Django", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", diff --git a/tests/test_image_chooser_views.py b/tests/test_image_chooser_views.py index 22d1797..86440ba 100644 --- a/tests/test_image_chooser_views.py +++ b/tests/test_image_chooser_views.py @@ -30,6 +30,7 @@ def setUp(self): def test_creates_image_if_asset_id_not_recognised(self): # For expediency and predictability, have create_object() # return a test image instead of creating its own + image = CustomImageFactory.create() with mock.patch( "wagtail_bynder.views.image.ImageChosenView.create_object", @@ -49,6 +50,7 @@ def test_creates_image_if_asset_id_not_recognised(self): "title": image.title, "preview": mock.ANY, "edit_url": reverse("wagtailimages:edit", args=[image.id]), + "default_alt_text": image.title, }, }, ) @@ -76,6 +78,7 @@ def test_uses_existing_image_without_updating(self, update_object_mock): "title": image.title, "preview": mock.ANY, "edit_url": reverse("wagtailimages:edit", args=[image.id]), + "default_alt_text": image.title, }, }, ) @@ -103,6 +106,7 @@ def test_uses_existing_image_and_updates_it(self, update_object_mock): "title": image.title, "preview": mock.ANY, "edit_url": reverse("wagtailimages:edit", args=[image.id]), + "default_alt_text": image.title, }, }, ) diff --git a/tox.ini b/tox.ini index 6b66acf..da11af6 100644 --- a/tox.ini +++ b/tox.ini @@ -2,8 +2,9 @@ min_version = 4.11 envlist = - py{3.11,3.12}-django{4.2,5.0}-wagtail{5.2,6.1,6.2,6.3} - py3.13-django5.1-wagtail6.3 + py{3.11,3.12}-django4.2-wagtail{5.2,6.3,6.4} + py3.13-django5.1-wagtail{6.3,6.4,7.0} + py3.13-django5.2-wagtail{6.3,6.4,7.0} [gh-actions] python = @@ -34,13 +35,11 @@ extras = testing deps = django4.2: Django>=4.2,<4.3 - django5.0: Django>=5.0,<5.1 django5.1: Django>=5.1,<5.2 - - wagtail5.2: wagtail>=5.2,<5.3 - wagtail6.1: wagtail>=6.1,<6.2 - wagtail6.2: wagtail>=6.2,<6.3 + django5.2: Django>=5.2,<5.3 wagtail6.3: wagtail>=6.3,<6.4 + wagtail6.4: wagtail>=6.4,<6.5 + wagtail7.0: wagtail>=7.0,<7.1 wagtailmain: git+https://github.com/wagtail/wagtail.git postgres: psycopg2>=2.9