Home / Function/ test_werkzeug_routing() — flask Function Reference

test_werkzeug_routing() — flask Function Reference

Architecture documentation for the test_werkzeug_routing() function in test_basic.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  2c69d390_5575_ca82_0c75_42ab511fa257["test_werkzeug_routing()"]
  85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"]
  2c69d390_5575_ca82_0c75_42ab511fa257 -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f
  6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"]
  2c69d390_5575_ca82_0c75_42ab511fa257 -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537
  style 2c69d390_5575_ca82_0c75_42ab511fa257 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_basic.py lines 193–211

def test_werkzeug_routing(app, client):
    from werkzeug.routing import Rule
    from werkzeug.routing import Submount

    app.url_map.add(
        Submount("/foo", [Rule("/bar", endpoint="bar"), Rule("/", endpoint="index")])
    )

    def bar():
        return "bar"

    def index():
        return "index"

    app.view_functions["bar"] = bar
    app.view_functions["index"] = index

    assert client.get("/foo/").data == b"index"
    assert client.get("/foo/bar").data == b"bar"

Subdomains

Defined In

Calls

Frequently Asked Questions

What does test_werkzeug_routing() do?
test_werkzeug_routing() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_werkzeug_routing() defined?
test_werkzeug_routing() is defined in tests/test_basic.py at line 193.
What does test_werkzeug_routing() call?
test_werkzeug_routing() calls 1 function(s): index.

Analyze Your Own Codebase

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

Try Supermodel Free