MCPcopy
hub / github.com/tortoise/tortoise-orm / test_limit_zero

Function test_limit_zero

tests/test_queryset.py:75–77  ·  view source on GitHub ↗
(db, intfields_data)

Source from the content-addressed store, hash-verified

73@requireCapability(dialect="sqlite")
74@pytest.mark.asyncio
75async def test_limit_zero(db, intfields_data):
76 sql = IntFields.all().only("id").limit(0).sql()
77 assert sql == 'SELECT "id" "id" FROM "intfields" LIMIT ?'
78
79
80@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 4

sqlMethod · 0.45
limitMethod · 0.45
onlyMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…