LTS v21.12 Deprecations (#2306)
Co-authored-by: Néstor Pérez <25409753+prryplatypus@users.noreply.github.com>
This commit is contained in:
@@ -68,11 +68,11 @@ def test_app_injection(app):
|
||||
|
||||
@app.listener("after_server_start")
|
||||
async def inject_data(app, loop):
|
||||
app.injected = expected
|
||||
app.ctx.injected = expected
|
||||
|
||||
@app.get("/")
|
||||
async def handler(request):
|
||||
return json({"injected": request.app.injected})
|
||||
return json({"injected": request.app.ctx.injected})
|
||||
|
||||
request, response = app.test_client.get("/")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user