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