MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / inline_refs

Function inline_refs

test/test_renderer/test_sql/test_default/test_table.py:64–73  ·  view source on GitHub ↗
(
    db1: Database, table1: Table, table2: Table
)

Source from the content-addressed store, hash-verified

62
63@pytest.fixture
64def inline_refs(
65 db1: Database, table1: Table, table2: Table
66) -> Tuple[Reference, Reference, Reference]:
67 r1 = Reference(">", table1[1], table2[1], inline=True)
68 r2 = Reference("-", table1[0], table2[0], inline=True)
69 r3 = Reference("<", table1[0], table2[1], inline=True)
70 db1.add(r1)
71 db1.add(r2)
72 db1.add(r3)
73 return r1, r2, r3
74
75
76class TestGetReferencesForSQL:

Callers

nothing calls this directly

Calls 2

ReferenceClass · 0.90
addMethod · 0.80

Tested by

no test coverage detected