test_make_response_with_response_instance() — flask Function Reference
Architecture documentation for the test_make_response_with_response_instance() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 97cb3288_2ace_eec1_bda2_beed7e74c09a["test_make_response_with_response_instance()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] 97cb3288_2ace_eec1_bda2_beed7e74c09a -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f style 97cb3288_2ace_eec1_bda2_beed7e74c09a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 1287–1305
def test_make_response_with_response_instance(app, req_ctx):
rv = flask.make_response(flask.jsonify({"msg": "W00t"}), 400)
assert rv.status_code == 400
assert rv.data == b'{"msg":"W00t"}\n'
assert rv.mimetype == "application/json"
rv = flask.make_response(flask.Response(""), 400)
assert rv.status_code == 400
assert rv.data == b""
assert rv.mimetype == "text/html"
rv = flask.make_response(
flask.Response("", headers={"Content-Type": "text/html"}),
400,
[("X-Foo", "bar")],
)
assert rv.status_code == 400
assert rv.headers["Content-Type"] == "text/html"
assert rv.headers["X-Foo"] == "bar"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_make_response_with_response_instance() do?
test_make_response_with_response_instance() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_make_response_with_response_instance() defined?
test_make_response_with_response_instance() is defined in tests/test_basic.py at line 1287.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free