test_subdomain_matching_other_name() — flask Function Reference
Architecture documentation for the test_subdomain_matching_other_name() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD b8672c44_7164_7da3_633d_17b1ca8841dd["test_subdomain_matching_other_name()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] b8672c44_7164_7da3_633d_17b1ca8841dd -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f 6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"] b8672c44_7164_7da3_633d_17b1ca8841dd -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537 style b8672c44_7164_7da3_633d_17b1ca8841dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 1806–1826
def test_subdomain_matching_other_name(matching):
app = flask.Flask(__name__, subdomain_matching=matching)
app.config["SERVER_NAME"] = "localhost.localdomain:3000"
client = app.test_client()
@app.route("/")
def index():
return "", 204
with pytest.warns(match="Current server name") if matching else nullcontext():
# ip address can't match name, but will fall back to default
rv = client.get("/", "http://127.0.0.1:3000/")
if werkzeug_3_2:
assert rv.status_code == 204
else:
assert rv.status_code == 404 if matching else 204
# allow all subdomains if matching is disabled
rv = client.get("/", "http://www.localhost.localdomain:3000/")
assert rv.status_code == 404 if matching else 204
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_subdomain_matching_other_name() do?
test_subdomain_matching_other_name() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_subdomain_matching_other_name() defined?
test_subdomain_matching_other_name() is defined in tests/test_basic.py at line 1806.
What does test_subdomain_matching_other_name() call?
test_subdomain_matching_other_name() 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