test_empty_url_defaults() — flask Function Reference
Architecture documentation for the test_empty_url_defaults() function in test_blueprints.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 989f6190_723b_f18d_d6bf_c099a25da3ab["test_empty_url_defaults()"] 4366a441_d387_52f9_ec8d_1c41c71c00a8["test_blueprints.py"] 989f6190_723b_f18d_d6bf_c099a25da3ab -->|defined in| 4366a441_d387_52f9_ec8d_1c41c71c00a8 style 989f6190_723b_f18d_d6bf_c099a25da3ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_blueprints.py lines 281–292
def test_empty_url_defaults(app, client):
bp = flask.Blueprint("bp", __name__)
@bp.route("/", defaults={"page": 1})
@bp.route("/page/<int:page>")
def something(page):
return str(page)
app.register_blueprint(bp)
assert client.get("/").data == b"1"
assert client.get("/page/2").data == b"2"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_empty_url_defaults() do?
test_empty_url_defaults() is a function in the flask codebase, defined in tests/test_blueprints.py.
Where is test_empty_url_defaults() defined?
test_empty_url_defaults() is defined in tests/test_blueprints.py at line 281.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free