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

Function test_first

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

Source from the content-addressed store, hash-verified

285
286@pytest.mark.asyncio
287async def test_first(tournament_model):
288 mdl = tournament_model
289 fetched_mdl = await Tournament.first()
290 assert mdl.id == fetched_mdl.id
291
292
293@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

firstMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…