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

Function doublefk_data

tests/test_relations.py:468–473  ·  view source on GitHub ↗

Build DoubleFK test data.

(db)

Source from the content-addressed store, hash-verified

466
467@pytest_asyncio.fixture
468async def doublefk_data(db):
469 """Build DoubleFK test data."""
470 one = await DoubleFK.create(name="one")
471 two = await DoubleFK.create(name="two")
472 middle = await DoubleFK.create(name="middle", left=one, right=two)
473 return middle
474
475
476@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…