test_nesting_subdomains() — flask Function Reference
Architecture documentation for the test_nesting_subdomains() function in test_blueprints.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD fbac5795_728b_364d_4297_29e95acaa9c3["test_nesting_subdomains()"] 4366a441_d387_52f9_ec8d_1c41c71c00a8["test_blueprints.py"] fbac5795_728b_364d_4297_29e95acaa9c3 -->|defined in| 4366a441_d387_52f9_ec8d_1c41c71c00a8 style fbac5795_728b_364d_4297_29e95acaa9c3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_blueprints.py lines 1034–1050
def test_nesting_subdomains(app, client) -> None:
app.subdomain_matching = True
app.config["SERVER_NAME"] = "example.test"
client.allow_subdomain_redirects = True
parent = flask.Blueprint("parent", __name__)
child = flask.Blueprint("child", __name__)
@child.route("/child/")
def index():
return "child"
parent.register_blueprint(child)
app.register_blueprint(parent, subdomain="api")
response = client.get("/child/", base_url="http://api.example.test")
assert response.status_code == 200
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_nesting_subdomains() do?
test_nesting_subdomains() is a function in the flask codebase, defined in tests/test_blueprints.py.
Where is test_nesting_subdomains() defined?
test_nesting_subdomains() is defined in tests/test_blueprints.py at line 1034.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free