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

Function test_limit_negative

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

Source from the content-addressed store, hash-verified

66
67@pytest.mark.asyncio
68async def test_limit_negative(db, intfields_data):
69 with pytest.raises(ParamsError, match="Limit should be non-negative number"):
70 await IntFields.all().limit(-10)
71
72
73@requireCapability(dialect="sqlite")

Callers

nothing calls this directly

Calls 2

limitMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…