Home / Function/ test_multi_route_rules() — flask Function Reference

test_multi_route_rules() — flask Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_basic.py lines 1829–1838

def test_multi_route_rules(app, client):
    @app.route("/")
    @app.route("/<test>/")
    def index(test="a"):
        return test

    rv = client.open("/")
    assert rv.data == b"a"
    rv = client.open("/b/")
    assert rv.data == b"b"

Subdomains

Defined In

Calls

Frequently Asked Questions

What does test_multi_route_rules() do?
test_multi_route_rules() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_multi_route_rules() defined?
test_multi_route_rules() is defined in tests/test_basic.py at line 1829.
What does test_multi_route_rules() call?
test_multi_route_rules() 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