Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
matrix:
python-version: ["3.13"]
django: ["5.1"]
wagtail: ["6.3"]
wagtail: ["6.4"]
db: ["postgres"]

services:
Expand Down Expand Up @@ -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
Expand Down
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions tests/test_image_chooser_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
},
},
)
Expand Down Expand Up @@ -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,
},
},
)
Expand Down Expand Up @@ -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,
},
},
)
13 changes: 6 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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
Expand Down