Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/flask
/ context_processor
Function
context_processor
tests/test_templating.py:13–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
def
test_context_processing(app, client):
12
@app.context_processor
13
def
context_processor():
14
return
{
"injected_value"
: 42}
15
16
@app.route(
"/"
)
17
def
index():
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected