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

Function test_recursive

tests/test_relations.py:599–605  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

597@requireCapability(dialect="sqlite")
598@pytest.mark.asyncio
599async def test_recursive(db) -> None:
600 file = "examples/relations_recursive.py"
601 r = subprocess.run([sys.executable, file], capture_output=True, text=True) # nosec
602 assert r.returncode == 0, f"Script failed (rc={r.returncode}): {r.stderr}"
603 output = r.stdout
604 s = "2.1. Second H2 (to: ) (from: 2.2. Third H2, Loose, 1.1. First H2)"
605 assert s in output

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…