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

Function test_event__offset

tests/fields/test_fk.py:304–309  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

302
303@pytest.mark.asyncio
304async def test_event__offset(db):
305 tour = await testmodels.Tournament.create(name="Team1")
306 await testmodels.Event.create(name="Event1", tournament=tour)
307 event2 = await testmodels.Event.create(name="Event2", tournament=tour)
308 event3 = await testmodels.Event.create(name="Event3", tournament=tour)
309 assert await tour.events.offset(1).order_by("name") == [event2, event3]
310
311
312@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

createMethod · 0.45
order_byMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…