test_enctype_debug_helper() — flask Function Reference
Architecture documentation for the test_enctype_debug_helper() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 9f4f363d_8971_9def_624a_f192f4a0cc67["test_enctype_debug_helper()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] 9f4f363d_8971_9def_624a_f192f4a0cc67 -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f 6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"] 9f4f363d_8971_9def_624a_f192f4a0cc67 -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537 style 9f4f363d_8971_9def_624a_f192f4a0cc67 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 1107–1119
def test_enctype_debug_helper(app, client):
from flask.debughelpers import DebugFilesKeyError
app.debug = True
@app.route("/fail", methods=["POST"])
def index():
return flask.request.files["foo"].filename
with pytest.raises(DebugFilesKeyError) as e:
client.post("/fail", data={"foo": "index.txt"})
assert "no file contents were transmitted" in str(e.value)
assert "This was submitted: 'index.txt'" in str(e.value)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_enctype_debug_helper() do?
test_enctype_debug_helper() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_enctype_debug_helper() defined?
test_enctype_debug_helper() is defined in tests/test_basic.py at line 1107.
What does test_enctype_debug_helper() call?
test_enctype_debug_helper() calls 1 function(s): index.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free