test_add_template_test_with_name() — flask Function Reference
Architecture documentation for the test_add_template_test_with_name() function in test_templating.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 16d1c4d1_0806_955d_eb6d_0fb8352741f7["test_add_template_test_with_name()"] b3595fee_7041_96b0_f59f_4080381c7deb["test_templating.py"] 16d1c4d1_0806_955d_eb6d_0fb8352741f7 -->|defined in| b3595fee_7041_96b0_f59f_4080381c7deb style 16d1c4d1_0806_955d_eb6d_0fb8352741f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_templating.py lines 295–302
def test_add_template_test_with_name(app):
def is_boolean(value):
return isinstance(value, bool)
app.add_template_test(is_boolean, "boolean")
assert "boolean" in app.jinja_env.tests.keys()
assert app.jinja_env.tests["boolean"] == is_boolean
assert app.jinja_env.tests["boolean"](False)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_add_template_test_with_name() do?
test_add_template_test_with_name() is a function in the flask codebase, defined in tests/test_templating.py.
Where is test_add_template_test_with_name() defined?
test_add_template_test_with_name() is defined in tests/test_templating.py at line 295.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free