Commit 99a6524
Update image chooser tests for Wagtail 7's default_alt_text response key
Wagtail 7.x adds a default_alt_text field to the image chooser chosen-step
response payload (sourced from the new Image.description model field).
The three TestImageChosenView assertions exhaustively compared the JSON
response, so they regressed once Wagtail started emitting the extra key.
Allow the new key with mock.ANY, matching the existing handling of the
preview value.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a2b02b3 commit 99a6524
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
0 commit comments