Home / Function/ test_template_filter_with_name_and_template() — flask Function Reference

test_template_filter_with_name_and_template() — flask Function Reference

Architecture documentation for the test_template_filter_with_name_and_template() function in test_templating.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  dbe176c2_3a5a_add2_40a2_74b1fb5d0da6["test_template_filter_with_name_and_template()"]
  b3595fee_7041_96b0_f59f_4080381c7deb["test_templating.py"]
  dbe176c2_3a5a_add2_40a2_74b1fb5d0da6 -->|defined in| b3595fee_7041_96b0_f59f_4080381c7deb
  style dbe176c2_3a5a_add2_40a2_74b1fb5d0da6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_templating.py lines 214–224

def test_template_filter_with_name_and_template(app, client):
    @app.template_filter("super_reverse")
    def my_reverse(s):
        return s[::-1]

    @app.route("/")
    def index():
        return flask.render_template("template_filter.html", value="abcd")

    rv = client.get("/")
    assert rv.data == b"dcba"

Subdomains

Frequently Asked Questions

What does test_template_filter_with_name_and_template() do?
test_template_filter_with_name_and_template() is a function in the flask codebase, defined in tests/test_templating.py.
Where is test_template_filter_with_name_and_template() defined?
test_template_filter_with_name_and_template() is defined in tests/test_templating.py at line 214.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free