def METHOD_NAME():
    task_complete = False
    async def task():
        nonlocal task_complete
        task_complete = True
    @strawberry.type
    class Query:
        @strawberry.field
        def something(self, info: Info[Any, Any]) -> str:
            response = info.context["response"]
            response.background.tasks.append(task)
            return "foo"
    schema = strawberry.Schema(query=Query)
    app = create_app(schema=schema)
    test_client = TestClient(app)
    response = test_client.post("/graphql", json={"query": "{ something }"})
    assert response.json() == {"data": {"something": "foo"}}
    assert task_complete