From d8b96900506436645e05bd2602699fd6bfeffbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Thu, 5 Nov 2026 21:40:09 +0100 Subject: [PATCH] tests: support CKAN 2.12 main.css and use Redis 7 in CI Co-Authored-By: Claude Opus 5.5 --- .github/workflows/check.yml | 2 +- CHANGELOG | 3 +++ ckanext/dcor_theme/tests/test_css.py | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fd6f8da..e8f150f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -42,7 +42,7 @@ jobs: --health-timeout 5s --health-retries 10 redis: - image: redis:3 + image: redis:7 minio: image: mpzpm/dcor-dev:minio-latest # Note: diff --git a/CHANGELOG b/CHANGELOG index 770c69d..82aba88 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +1.1.7 + - tests: relax the DCOR color count in `main.css` for CKAN 2.12 + - tests: use Redis 7 in CI (CKAN 2.12 requires Redis >= 6) 1.1.6 - tests: add tests for the CLI commands, the i18n branding, and the contact, imprint, and privacy pages diff --git a/ckanext/dcor_theme/tests/test_css.py b/ckanext/dcor_theme/tests/test_css.py index e1b7f73..9658102 100644 --- a/ckanext/dcor_theme/tests/test_css.py +++ b/ckanext/dcor_theme/tests/test_css.py @@ -36,8 +36,8 @@ def test_replace_colors_ckan_main_css(): rgb = [float(value) for value in match.groups()] assert not all(abs(a - b) <= 1 for a, b in zip(rgb, ref)), \ f"{match.group(0)} ({color}) was not replaced" - # the DCOR colors are there - assert css.count(mdc.color_map["#1a5668"]) >= 9 + # the DCOR colors are there (9 occurrences in CKAN 2.11, 8 in 2.12) + assert css.count(mdc.color_map["#1a5668"]) >= 8 def test_rgb_regexp():