From 7e53c6bff79e25d45da8907906fb7354088c7913 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Sun, 7 Apr 2024 09:15:21 +0200 Subject: [PATCH] Fix tests for Django 5 --- .github/workflows/codecov.yml | 3 +++ tests/test_fields.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 45c6b30..97717ab 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -23,6 +23,9 @@ jobs: os: [ ubuntu-20.04, ] + exclude: + - python-version: 3.9 + requirements-file: dj50_cms41.txt steps: - uses: actions/checkout@v3 diff --git a/tests/test_fields.py b/tests/test_fields.py index 10c9c23..e364bb0 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -13,8 +13,8 @@ def test_tag_type_field(self): field = TagTypeField() self.assertEqual(field.verbose_name, "Tag type") self.assertEqual( - field.choices, - (("div", "div"),), + list(field.choices), + list((("div", "div"),)), ) self.assertEqual(field.default, "div") self.assertEqual(field.max_length, 255)