test_environ_for_valid_idna_completes() — flask Function Reference
Architecture documentation for the test_environ_for_valid_idna_completes() function in test_reqctx.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 95a675b0_6ea4_b095_db6f_a2b13b435bb8["test_environ_for_valid_idna_completes()"] aea65cbf_db83_bd4f_d83f_1a35ae104254["test_reqctx.py"] 95a675b0_6ea4_b095_db6f_a2b13b435bb8 -->|defined in| aea65cbf_db83_bd4f_d83f_1a35ae104254 style 95a675b0_6ea4_b095_db6f_a2b13b435bb8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_reqctx.py lines 297–315
def test_environ_for_valid_idna_completes():
app = flask.Flask(__name__)
@app.route("/")
def index():
return "Hello World!"
from flask.testing import EnvironBuilder
builder = EnvironBuilder(app)
environ = builder.get_environ()
# these characters are all IDNA-compatible
environ["HTTP_HOST"] = "ąśźäüжŠßя.com"
with app.request_context(environ) as ctx:
response = app.full_dispatch_request(ctx)
assert response.status_code == 200
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_environ_for_valid_idna_completes() do?
test_environ_for_valid_idna_completes() is a function in the flask codebase, defined in tests/test_reqctx.py.
Where is test_environ_for_valid_idna_completes() defined?
test_environ_for_valid_idna_completes() is defined in tests/test_reqctx.py at line 297.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free