test_send_from_directory() — flask Function Reference
Architecture documentation for the test_send_from_directory() function in test_helpers.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 12a5c2a5_cd88_92c4_c104_005d117cd7ca["test_send_from_directory()"] b3e863f6_458a_708a_dfc2_28e32b43300e["TestSendfile"] 12a5c2a5_cd88_92c4_c104_005d117cd7ca -->|defined in| b3e863f6_458a_708a_dfc2_28e32b43300e aeed6e85_d75e_4caa_702e_8017da7792a4["close()"] 12a5c2a5_cd88_92c4_c104_005d117cd7ca -->|calls| aeed6e85_d75e_4caa_702e_8017da7792a4 style 12a5c2a5_cd88_92c4_c104_005d117cd7ca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_helpers.py lines 92–99
def test_send_from_directory(self, app, req_ctx):
app.root_path = os.path.join(
os.path.dirname(__file__), "test_apps", "subdomaintestmodule"
)
rv = flask.send_from_directory("static", "hello.txt")
rv.direct_passthrough = False
assert rv.data.strip() == b"Hello Subdomain"
rv.close()
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_send_from_directory() do?
test_send_from_directory() is a function in the flask codebase, defined in tests/test_helpers.py.
Where is test_send_from_directory() defined?
test_send_from_directory() is defined in tests/test_helpers.py at line 92.
What does test_send_from_directory() call?
test_send_from_directory() 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