MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / test_in_bulk

Function test_in_bulk

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

Source from the content-addressed store, hash-verified

280
281@pytest.mark.asyncio
282async def test_in_bulk(db, intfields_data):
283 id_list = [item.pk for item in await IntFields.all().only("id").limit(2)]
284 ret = await IntFields.in_bulk(id_list=id_list)
285 assert list(ret.keys()) == id_list
286
287
288@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 5

keysMethod · 0.80
limitMethod · 0.45
onlyMethod · 0.45
allMethod · 0.45
in_bulkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…