Skip to content
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

Enable StrictUndefined for jinja when testing #127

Open
rsyring opened this issue Aug 28, 2021 · 1 comment
Open

Enable StrictUndefined for jinja when testing #127

rsyring opened this issue Aug 28, 2021 · 1 comment

Comments

@rsyring
Copy link
Member

rsyring commented Aug 28, 2021

To catch undefined variables:

app.jinja_env.undefined = jinja2.StrictUndefined
@guruofgentoo
Copy link
Member

Note, we'll need to do this in keg-elements first, because the base form templates are guilty of using undefined vars in conditional blocks.

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

No branches or pull requests

2 participants