test_endpoint_decorator() — flask Function Reference
Architecture documentation for the test_endpoint_decorator() function in test_blueprints.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 997a6893_a87d_0047_b888_2d1b02330d82["test_endpoint_decorator()"] 4366a441_d387_52f9_ec8d_1c41c71c00a8["test_blueprints.py"] 997a6893_a87d_0047_b888_2d1b02330d82 -->|defined in| 4366a441_d387_52f9_ec8d_1c41c71c00a8 style 997a6893_a87d_0047_b888_2d1b02330d82 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_blueprints.py lines 345–359
def test_endpoint_decorator(app, client):
from werkzeug.routing import Rule
app.url_map.add(Rule("/foo", endpoint="bar"))
bp = flask.Blueprint("bp", __name__)
@bp.endpoint("bar")
def foobar():
return flask.request.endpoint
app.register_blueprint(bp, url_prefix="/bp_prefix")
assert client.get("/foo").data == b"bar"
assert client.get("/bp_prefix/bar").status_code == 404
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_endpoint_decorator() do?
test_endpoint_decorator() is a function in the flask codebase, defined in tests/test_blueprints.py.
Where is test_endpoint_decorator() defined?
test_endpoint_decorator() is defined in tests/test_blueprints.py at line 345.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free