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

Function client

examples/sanic/_tests.py:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23@pytest.fixture
24def client():
25 sanic_app = main.app
26
27 # make register_tortoise treat this as sanic-testing (ReusableClient doesn't set this flag)
28 sanic_app._test_manager = True
29 client = ReusableClient(sanic_app)
30 with client:
31 yield client
32
33
34def test_basic_test_client(client):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…