test_subdomain_basic_support() — flask Function Reference
Architecture documentation for the test_subdomain_basic_support() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD b77dc829_ceb2_cd47_15f1_0b2f181e1116["test_subdomain_basic_support()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] b77dc829_ceb2_cd47_15f1_0b2f181e1116 -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f style b77dc829_ceb2_cd47_15f1_0b2f181e1116 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 1759–1776
def test_subdomain_basic_support():
app = flask.Flask(__name__, subdomain_matching=True)
app.config["SERVER_NAME"] = "localhost.localdomain"
client = app.test_client()
@app.route("/")
def normal_index():
return "normal index"
@app.route("/", subdomain="test")
def test_index():
return "test index"
rv = client.get("/", "http://localhost.localdomain/")
assert rv.data == b"normal index"
rv = client.get("/", "http://test.localhost.localdomain/")
assert rv.data == b"test index"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_subdomain_basic_support() do?
test_subdomain_basic_support() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_subdomain_basic_support() defined?
test_subdomain_basic_support() is defined in tests/test_basic.py at line 1759.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free