test_template_test_with_name() — flask Function Reference
Architecture documentation for the test_template_test_with_name() function in test_blueprints.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD fd99fd2b_fef8_4897_ea49_866c8de070d8["test_template_test_with_name()"] d1099772_a45a_a9fc_1646_c865e8d6a975["test_blueprints.py"] fd99fd2b_fef8_4897_ea49_866c8de070d8 -->|defined in| d1099772_a45a_a9fc_1646_c865e8d6a975 style fd99fd2b_fef8_4897_ea49_866c8de070d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_blueprints.py lines 572–582
def test_template_test_with_name(app):
bp = flask.Blueprint("bp", __name__)
@bp.app_template_test("boolean")
def is_boolean(value):
return isinstance(value, bool)
app.register_blueprint(bp, url_prefix="/py")
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_template_test_with_name() do?
test_template_test_with_name() is a function in the flask codebase, defined in tests/test_blueprints.py.
Where is test_template_test_with_name() defined?
test_template_test_with_name() is defined in tests/test_blueprints.py at line 572.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free