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