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

Function is_boolean

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

Source from the content-addressed store, hash-verified

237def test_template_test_with_name(app):
238 @app.template_test("boolean")
239 def is_boolean(value):
240 return isinstance(value, bool)
241
242 assert "boolean" in app.jinja_env.tests.keys()
243 assert app.jinja_env.tests["boolean"] == is_boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected