Home / Function/ test_send_file() — flask Function Reference

test_send_file() — flask Function Reference

Architecture documentation for the test_send_file() function in test_helpers.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  a964018d_c51c_456a_4a3b_a3cb1ba9b811["test_send_file()"]
  b3e863f6_458a_708a_dfc2_28e32b43300e["TestSendfile"]
  a964018d_c51c_456a_4a3b_a3cb1ba9b811 -->|defined in| b3e863f6_458a_708a_dfc2_28e32b43300e
  aeed6e85_d75e_4caa_702e_8017da7792a4["close()"]
  a964018d_c51c_456a_4a3b_a3cb1ba9b811 -->|calls| aeed6e85_d75e_4caa_702e_8017da7792a4
  style a964018d_c51c_456a_4a3b_a3cb1ba9b811 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_helpers.py lines 34–43

    def test_send_file(self, app, req_ctx):
        rv = flask.send_file("static/index.html")
        assert rv.direct_passthrough
        assert rv.mimetype == "text/html"

        with app.open_resource("static/index.html") as f:
            rv.direct_passthrough = False
            assert rv.data == f.read()

        rv.close()

Subdomains

Calls

Frequently Asked Questions

What does test_send_file() do?
test_send_file() is a function in the flask codebase, defined in tests/test_helpers.py.
Where is test_send_file() defined?
test_send_file() is defined in tests/test_helpers.py at line 34.
What does test_send_file() call?
test_send_file() calls 1 function(s): close.

Analyze Your Own Codebase

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

Try Supermodel Free