test_request_preprocessing_early_return() — flask Function Reference
Architecture documentation for the test_request_preprocessing_early_return() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 2202dc2c_563d_2e67_73c3_9ed1f5450d63["test_request_preprocessing_early_return()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] 2202dc2c_563d_2e67_73c3_9ed1f5450d63 -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f 6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"] 2202dc2c_563d_2e67_73c3_9ed1f5450d63 -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537 style 2202dc2c_563d_2e67_73c3_9ed1f5450d63 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 713–737
def test_request_preprocessing_early_return(app, client):
evts = []
@app.before_request
def before_request1():
evts.append(1)
@app.before_request
def before_request2():
evts.append(2)
return "hello"
@app.before_request
def before_request3():
evts.append(3)
return "bye"
@app.route("/")
def index():
evts.append("index")
return "damnit"
rv = client.get("/").data.strip()
assert rv == b"hello"
assert evts == [1, 2]
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_request_preprocessing_early_return() do?
test_request_preprocessing_early_return() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_request_preprocessing_early_return() defined?
test_request_preprocessing_early_return() is defined in tests/test_basic.py at line 713.
What does test_request_preprocessing_early_return() call?
test_request_preprocessing_early_return() 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