test_route_decorator_custom_endpoint() — flask Function Reference
Architecture documentation for the test_route_decorator_custom_endpoint() function in test_blueprints.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 31607fc2_0fa7_a159_b8ad_77936655952f["test_route_decorator_custom_endpoint()"] 4366a441_d387_52f9_ec8d_1c41c71c00a8["test_blueprints.py"] 31607fc2_0fa7_a159_b8ad_77936655952f -->|defined in| 4366a441_d387_52f9_ec8d_1c41c71c00a8 style 31607fc2_0fa7_a159_b8ad_77936655952f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_blueprints.py lines 295–324
def test_route_decorator_custom_endpoint(app, client):
bp = flask.Blueprint("bp", __name__)
@bp.route("/foo")
def foo():
return flask.request.endpoint
@bp.route("/bar", endpoint="bar")
def foo_bar():
return flask.request.endpoint
@bp.route("/bar/123", endpoint="123")
def foo_bar_foo():
return flask.request.endpoint
@bp.route("/bar/foo")
def bar_foo():
return flask.request.endpoint
app.register_blueprint(bp, url_prefix="/py")
@app.route("/")
def index():
return flask.request.endpoint
assert client.get("/").data == b"index"
assert client.get("/py/foo").data == b"bp.foo"
assert client.get("/py/bar").data == b"bp.bar"
assert client.get("/py/bar/123").data == b"bp.123"
assert client.get("/py/bar/foo").data == b"bp.bar_foo"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_route_decorator_custom_endpoint() do?
test_route_decorator_custom_endpoint() is a function in the flask codebase, defined in tests/test_blueprints.py.
Where is test_route_decorator_custom_endpoint() defined?
test_route_decorator_custom_endpoint() is defined in tests/test_blueprints.py at line 295.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free