Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions ckanext/dcor_theme/tests/test_css.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
Loading