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

Method test_init_with_indexes

test/test_classes/test_table.py:54–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 self.assertIs(t['col3'].table, t)
53
54 def test_init_with_indexes(self) -> None:
55 c1 = Column('col1', 'integer')
56 c2 = Column('col2', 'integer')
57 c3 = Column('col3', 'integer')
58 t = Table(
59 'products',
60 columns=[c1, c2, c3],
61 indexes=[Index(subjects=[c1])]
62 )
63 self.assertIs(t.indexes[0].table, t)
64
65 def test_get(self) -> None:
66 t = Table('products')

Callers

nothing calls this directly

Calls 3

ColumnClass · 0.90
TableClass · 0.90
IndexClass · 0.90

Tested by

no test coverage detected