test_multi_route_class_views() — flask Function Reference
Architecture documentation for the test_multi_route_class_views() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 861f7992_0303_495a_a790_a03a6b0deffe["test_multi_route_class_views()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] 861f7992_0303_495a_a790_a03a6b0deffe -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f 6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"] 861f7992_0303_495a_a790_a03a6b0deffe -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537 style 861f7992_0303_495a_a790_a03a6b0deffe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 1841–1854
def test_multi_route_class_views(app, client):
class View:
def __init__(self, app):
app.add_url_rule("/", "index", self.index)
app.add_url_rule("/<test>/", "index", self.index)
def index(self, test="a"):
return test
_ = View(app)
rv = client.open("/")
assert rv.data == b"a"
rv = client.open("/b/")
assert rv.data == b"b"
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_multi_route_class_views() do?
test_multi_route_class_views() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_multi_route_class_views() defined?
test_multi_route_class_views() is defined in tests/test_basic.py at line 1841.
What does test_multi_route_class_views() call?
test_multi_route_class_views() 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