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

Method test_table1

test/test_classes/test_reference.py:12–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class TestReference(TestCase):
12 def test_table1(self):
13 t = Table('products')
14 c1 = Column('name', 'varchar2')
15 t2 = Table('names')
16 c2 = Column('name_val', 'varchar2')
17 t2.add_column(c2)
18 ref = Reference('>', c1, c2)
19 self.assertIsNone(ref.table1)
20 t.add_column(c1)
21 self.assertIs(ref.table1, t)
22
23 def test_join_table(self) -> None:
24 t1 = Table('books')

Callers

nothing calls this directly

Calls 4

add_columnMethod · 0.95
TableClass · 0.90
ColumnClass · 0.90
ReferenceClass · 0.90

Tested by

no test coverage detected