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