test_endpoint_decorator() — flask Function Reference
Architecture documentation for the test_endpoint_decorator() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 0bf32935_da30_d869_c67e_8257b1d73849["test_endpoint_decorator()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] 0bf32935_da30_d869_c67e_8257b1d73849 -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f 6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"] 0bf32935_da30_d869_c67e_8257b1d73849 -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537 style 0bf32935_da30_d869_c67e_8257b1d73849 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 214–231
def test_endpoint_decorator(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")])
)
@app.endpoint("bar")
def bar():
return "bar"
@app.endpoint("index")
def index():
return "index"
assert client.get("/foo/").data == b"index"
assert client.get("/foo/bar").data == b"bar"
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_endpoint_decorator() do?
test_endpoint_decorator() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_endpoint_decorator() defined?
test_endpoint_decorator() is defined in tests/test_basic.py at line 214.
What does test_endpoint_decorator() call?
test_endpoint_decorator() 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