-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Refs #10941 -- Added tests for querystring template tag. #18487
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
Refs #10941 -- Added tests for querystring template tag. #18487
Conversation
0db2b42
to
946cefc
Compare
4d207d2
to
b518f43
Compare
I split the diff in two commits, the first one introduces the helper and does the refactor, the second adds two new tests. |
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.
Thank you! I have small suggestions
b518f43
to
69b1623
Compare
69b1623
to
d6ab249
Compare
Hey, how is this looking? I'd like to finish off #18368 once this is merged ✨ |
d6ab249
to
ecd8df1
Compare
…g template tag. Thank you Sarah Boyce for the review and suggestions.
These extra tests assert over the handling of empty params (None, empty dict, empty QueryDict), and also for dicts having non-string keys.
ecd8df1
to
ccf0b93
Compare
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.
Thank you!
Trac ticket number
ticket-10941
Branch description
This branch adds extra tests for the
querystring
template tag, in preparation for merging PR #18368.This branch also implements a small test refactoring to avoid duplication, inspired by utils' tests for safestring
assertRenderEqual
.Checklist
main
branch.