MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / client_manager

Function client_manager

examples/fastapi/_tests.py:42–46  ·  view source on GitHub ↗
(app, base_url="http://test", **kw)

Source from the content-addressed store, hash-verified

40
41@asynccontextmanager
42async def client_manager(app, base_url="http://test", **kw) -> ClientManagerType:
43 async with LifespanManager(app):
44 transport = ASGITransport(app=app)
45 async with AsyncClient(transport=transport, base_url=base_url, **kw) as c:
46 yield c
47
48
49@pytest.fixture(scope="module")

Callers 2

clientFunction · 0.85
client_eastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…