Skip to content

tests: add tests for CLI commands, i18n branding, and static pages - #12

Merged
paulmueller merged 1 commit into
DCOR-dev:masterfrom
paulmueller-agent:tests-coverage
Nov 4, 2026
Merged

paulmueller merged 1 commit into
DCOR-dev:masterfrom
paulmueller-agent:tests-coverage

Conversation

@paulmueller-agent

Copy link
Copy Markdown

Adds simple tests for the parts of ckanext-dcor_theme that were not tested yet (Codecov: 69 % on master).

  • test_i18n.py: replace_branding (organization → circle, group → collection, preserved placeholders such as {organization} and organization_id, plural tuples) and ckan dcor-theme-i18n-branding (.po/.mo files for en_US are created)
  • test_cli.py: ckan dcor-theme-main-css-branding (dcor_main.css contains the custom CSS and none of the replaced CKAN colors) and ckan dcor-patch-ckan-templates (run twice; truncate filters removed, overflow-wrap added)
  • test_plugin.py: get_commands and the /contact, /imprint, /privacy pages render

The CLI tests modify the CKAN installation in the CI container, just like dcor inspect does during the CI setup.

CHANGELOG: tests entry under 1.1.6.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.58%. Comparing base (698d25f) to head (78c8943).

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #12       +/-   ##
===========================================
+ Coverage   69.06%   99.58%   +30.52%     
===========================================
  Files          11       13        +2     
  Lines         181      243       +62     
===========================================
+ Hits          125      242      +117     
+ Misses         56        1       -55     
Flag Coverage Δ
develop 99.58% <100.00%> (+30.52%) ⬆️
pypi 99.58% <100.00%> (+30.52%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paulmueller
paulmueller merged commit 47c523b into DCOR-dev:master Nov 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants