Repository navigation
tests: add tests for CLI commands, i18n branding, and static pages - #12
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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}andorganization_id, plural tuples) andckan dcor-theme-i18n-branding(.po/.mofiles for en_US are created)test_cli.py:ckan dcor-theme-main-css-branding(dcor_main.csscontains the custom CSS and none of the replaced CKAN colors) andckan dcor-patch-ckan-templates(run twice; truncate filters removed, overflow-wrap added)test_plugin.py:get_commandsand the/contact,/imprint,/privacypages renderThe CLI tests modify the CKAN installation in the CI container, just like
dcor inspectdoes during the CI setup.CHANGELOG: tests entry under 1.1.6.
🤖 Generated with Claude Code