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 #151

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

Enable StrictUndefined for jinja when testing #151

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

Maybe the best place to do this would be in keg itself: https://github.com/level12/keg/blob/master/keg/app.py#L161

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