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

Function test_create

tests/test_model_methods.py:178–182  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

176
177@pytest.mark.asyncio
178async def test_create(db):
179 mdl = Tournament(name="Test2")
180 assert mdl.id is None
181 await mdl.save()
182 assert mdl.id is not None
183
184
185@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

TournamentClass · 0.90
saveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…