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

Function test_raw

tests/test_model_methods.py:495–500  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

493
494@pytest.mark.asyncio
495async def test_raw(db):
496 await Node.create(name="TestRaw")
497 ret = await Node.raw("select * from node where name='TestRaw'")
498 assert len(ret) == 1
499 ret = await Node.raw("select * from node where name='111'")
500 assert len(ret) == 0
501
502
503# ============================================================================

Callers

nothing calls this directly

Calls 2

createMethod · 0.45
rawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…