Home / Function/ test_make_response() — flask Function Reference

test_make_response() — flask Function Reference

Architecture documentation for the test_make_response() function in test_basic.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  ce392d26_179a_baf2_5a2b_e55f9fb7c27d["test_make_response()"]
  85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"]
  ce392d26_179a_baf2_5a2b_e55f9fb7c27d -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f
  style ce392d26_179a_baf2_5a2b_e55f9fb7c27d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_basic.py lines 1265–1284

def test_make_response(app, req_ctx):
    rv = flask.make_response()
    assert rv.status_code == 200
    assert rv.data == b""
    assert rv.mimetype == "text/html"

    rv = flask.make_response("Awesome")
    assert rv.status_code == 200
    assert rv.data == b"Awesome"
    assert rv.mimetype == "text/html"

    rv = flask.make_response("W00t", 404)
    assert rv.status_code == 404
    assert rv.data == b"W00t"
    assert rv.mimetype == "text/html"

    rv = flask.make_response(c for c in "Hello")
    assert rv.status_code == 200
    assert rv.data == b"Hello"
    assert rv.mimetype == "text/html"

Subdomains

Defined In

Frequently Asked Questions

What does test_make_response() do?
test_make_response() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_make_response() defined?
test_make_response() is defined in tests/test_basic.py at line 1265.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free