Home / Function/ test_iterable_loader() — flask Function Reference

test_iterable_loader() — flask Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_templating.py lines 423–440

def test_iterable_loader(app, client):
    @app.context_processor
    def context_processor():
        return {"whiskey": "Jameson"}

    @app.route("/")
    def index():
        return flask.render_template(
            [
                "no_template.xml",  # should skip this one
                "simple_template.html",  # should render this
                "context_template.html",
            ],
            value=23,
        )

    rv = client.get("/")
    assert rv.data == b"<h1>Jameson</h1>"

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free