MCPcopy
hub / github.com/encode/starlette / app

Function app

tests/test_routing.py:702–709  ·  tests/test_routing.py::app
(scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

700 startup_failed = False
701
702 async def app(scope: Scope, receive: Receive, send: Send) -> None:
703 async def _send(message: Message) -> None:
704 nonlocal startup_failed
705 if message[class="st">"type"] == class="st">"lifespan.startup.failed": class="cm"># pragma: no branch
706 startup_failed = True
707 return await send(message)
708
709 await router(scope, receive, _send)
710
711 with pytest.raises(RuntimeError):
712 with test_client_factory(app):

Callers 2

_appFunction · 0.70
no_state_wrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected