MCPcopy Create free account
hub / github.com/pallets/flask / boolean

Function boolean

tests/test_templating.py:219–220  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

217def test_template_test(app):
218 @app.template_test()
219 def boolean(value):
220 return isinstance(value, bool)
221
222 assert "boolean" in app.jinja_env.tests.keys()
223 assert app.jinja_env.tests["boolean"] == boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected