test_client_open_environ() — flask Function Reference
Architecture documentation for the test_client_open_environ() function in test_testing.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD fad242a7_1c8e_5916_7368_97ab8f7efec4["test_client_open_environ()"] 8c162ff0_0a8a_d943_77b6_c07b38d297a0["test_testing.py"] fad242a7_1c8e_5916_7368_97ab8f7efec4 -->|defined in| 8c162ff0_0a8a_d943_77b6_c07b38d297a0 style fad242a7_1c8e_5916_7368_97ab8f7efec4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_testing.py lines 73–87
def test_client_open_environ(app, client, request):
@app.route("/index")
def index():
return flask.request.remote_addr
builder = EnvironBuilder(app, path="/index", method="GET")
request.addfinalizer(builder.close)
rv = client.open(builder)
assert rv.data == b"127.0.0.1"
environ = builder.get_environ()
client.environ_base["REMOTE_ADDR"] = "127.0.0.2"
rv = client.open(environ)
assert rv.data == b"127.0.0.2"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_client_open_environ() do?
test_client_open_environ() is a function in the flask codebase, defined in tests/test_testing.py.
Where is test_client_open_environ() defined?
test_client_open_environ() is defined in tests/test_testing.py at line 73.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free