(scope: Scope, receive: Receive, send: Send)
| 16 | task = BackgroundTask(async_task) |
| 17 | |
| 18 | async def app(scope: Scope, receive: Receive, send: Send) -> None: |
| 19 | response = Response(class="st">"task initiated", media_type=class="st">"text/plain", background=task) |
| 20 | await response(scope, receive, send) |
| 21 | |
| 22 | client = test_client_factory(app) |
| 23 | response = client.get(class="st">"/") |
nothing calls this directly
no test coverage detected