Skip to content

Commit 7134319

Browse files
authored
Fix nightly test for Wagtail 6.3 / Django 5.1 (#250)
* Bump Postgres to version 15 in nightly test script * assertQuerysetEqual -> assertQuerySetEqual for Django 5.x compatibility * Add include-hidden-files: true
1 parent fa6177f commit 7134319

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/nightly-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
services:
1717
postgres:
18-
image: postgres:12.7
18+
image: postgres:15
1919
env:
2020
POSTGRES_PASSWORD: postgres
2121
ports:

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
name: coverage-data
6666
path: .coverage.*
6767
if-no-files-found: ignore
68+
include-hidden-files: true
6869
retention-days: 1
6970

7071
coverage:

tests/test_blocks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ def test_media_block_get_form_state(self):
5151
def test_abstract_media_block_queryset(self):
5252
block = AbstractMediaChooserBlock()
5353

54-
self.assertQuerysetEqual(
54+
self.assertQuerySetEqual(
5555
block.field.queryset.order_by("pk"),
5656
Media.objects.order_by("pk"),
5757
)
5858

5959
block = AbstractMediaChooserBlock(media_type="audio")
60-
self.assertQuerysetEqual(
60+
self.assertQuerySetEqual(
6161
block.field.queryset.order_by("pk"),
6262
Media.objects.filter(type="audio").order_by("pk"),
6363
)
6464

6565
block = AbstractMediaChooserBlock(media_type="subspace-transmission")
66-
self.assertQuerysetEqual(block.field.queryset, Media.objects.none())
66+
self.assertQuerySetEqual(block.field.queryset, Media.objects.none())
6767

6868
def test_audio_chooser_block_type(self):
6969
block = AudioChooserBlock()

0 commit comments

Comments
 (0)