test_nosubdomain() — flask Function Reference
Architecture documentation for the test_nosubdomain() function in test_testing.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 3eea9bdf_0d19_efe3_da7f_739d7449e4cd["test_nosubdomain()"] 8c162ff0_0a8a_d943_77b6_c07b38d297a0["test_testing.py"] 3eea9bdf_0d19_efe3_da7f_739d7449e4cd -->|defined in| 8c162ff0_0a8a_d943_77b6_c07b38d297a0 style 3eea9bdf_0d19_efe3_da7f_739d7449e4cd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_testing.py lines 310–324
def test_nosubdomain(app, client):
app.config["SERVER_NAME"] = "example.com"
@app.route("/<company_id>")
def view(company_id):
return company_id
with app.test_request_context():
url = flask.url_for("view", company_id="xxx")
with client:
response = client.get(url)
assert 200 == response.status_code
assert b"xxx" == response.data
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_nosubdomain() do?
test_nosubdomain() is a function in the flask codebase, defined in tests/test_testing.py.
Where is test_nosubdomain() defined?
test_nosubdomain() is defined in tests/test_testing.py at line 310.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free