-
Notifications
You must be signed in to change notification settings - Fork 1.1k
tests: assert jinja templates are all rendered correctly. #6765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tests/functional/test_templates.py
Outdated
| env.filters.update( | ||
| { | ||
| "format_date": "warehouse.i18n.filters:format_date", | ||
| "format_datetime": "warehouse.i18n.filters:format_datetime", | ||
| "format_rfc822_datetime": "warehouse.i18n.filters:format_rfc822_datetime", | ||
| "format_number": "warehouse.i18n.filters:format_number", | ||
| "format_classifiers": "warehouse.filters:format_classifiers", | ||
| "classifier_id": "warehouse.filters:classifier_id", | ||
| "format_tags": "warehouse.filters:format_tags", | ||
| "json": "warehouse.filters:tojson", | ||
| "camoify": "warehouse.filters:camoify", | ||
| "shorten_number": "warehouse.filters:shorten_number", | ||
| "urlparse": "warehouse.filters:urlparse", | ||
| "contains_valid_uris": "warehouse.filters:contains_valid_uris", | ||
| "format_package_type": "warehouse.filters:format_package_type", | ||
| "parse_version": "warehouse.filters:parse_version", | ||
| "localize_datetime": "warehouse.filters:localize_datetime", | ||
| } | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can automatically generate this list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes sense, would you have any suggestions on how to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just bumping, would love to have this merged :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, might be a bit much for this PR. At the very least, can we not duplicate this between the two tests in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing, all done!
697254c to
e9fd039
Compare
e9fd039 to
92f399d
Compare
|
Is there anything else I can improve for this? :) |
|
Thanks! |
Hi all, I added a unit test that should address #6634
I opted to try rendering all templates instead of just the specified one.
Fixes #6634.