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

Function client_east

examples/fastapi/_tests.py:57–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56@pytest.fixture(scope="module")
57async def client_east() -> ClientManagerType:
58 # app_east uses _enable_global_fallback=False, so we need to explicitly
59 # enter the context from app.state to make it current for tests
60 async with client_manager(app_east) as c:
61 ctx = app_east.state._tortoise_context
62 with ctx: # Enter context to make it current via contextvar
63 await truncate_all_models()
64 yield c
65
66
67class UserTester:

Callers

nothing calls this directly

Calls 2

truncate_all_modelsFunction · 0.90
client_managerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…