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

Function test_all

tests/test_model_methods.py:324–328  ·  view source on GitHub ↗
(tournament_model)

Source from the content-addressed store, hash-verified

322
323@pytest.mark.asyncio
324async def test_all(tournament_model):
325 mdl = tournament_model
326 mdls = list(await Tournament.all())
327 assert len(mdls) == 1
328 assert mdls == [mdl]
329
330
331@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

allMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…