-
Notifications
You must be signed in to change notification settings - Fork 26
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
Bug Fix for the template render tool #573
Bug Fix for the template render tool #573
Conversation
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.
Looks good, though I see that the CI formatting check has failed. Probably make format && make test
in a development shell and then committing any changes made by that will overcome the failure.
Do we need to issue bugfix releases for any previous versions? I suppose we'll need at least a |
After testing with each an environment for each of the versions you mentioned, I found the same bug exists in versions I took a look at the code in each of the version branches in this repository too, and it looks like the bug should exist in |
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.
LGTM.
@Byrnetp Nice work, thank you. I'll prep a |
Synopsis
template.render
andtemplate.render_to_str
currently returnNone
when thevalues_needed
parameter is set toTrue
, which leads to an error being raised. This fix has the functions return the unrendered template instead. A unit test is added that fails for the old behavior and passes for the new behavior.Type
Impact
Checklist