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

Method test_add_table_group

test/test_database.py:195–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 self.assertIsNone(e.database)
194
195 def test_add_table_group(self) -> None:
196 t1 = Table('table1')
197 t2 = Table('table2')
198 tg = TableGroup('mytablegroup', [t1, t2])
199 database = Database()
200 res = database.add_table_group(tg)
201 self.assertEqual(tg.database, database)
202 self.assertIs(res, tg)
203 self.assertIn(tg, database.table_groups)
204
205 def test_add_table_group_bad(self) -> None:
206 t1 = Table('table1')

Callers

nothing calls this directly

Calls 4

add_table_groupMethod · 0.95
TableClass · 0.90
TableGroupClass · 0.90
DatabaseClass · 0.90

Tested by

no test coverage detected