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

Method test_delete_missing_table_group

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

Source from the content-addressed store, hash-verified

226 self.assertNotIn(tg, database.table_groups)
227
228 def test_delete_missing_table_group(self) -> None:
229 t1 = Table('table1')
230 t2 = Table('table2')
231 tg = TableGroup('mytablegroup', [t1, t2])
232 database = Database()
233 with self.assertRaises(DatabaseValidationError):
234 database.delete_table_group(tg)
235 self.assertIsNone(tg.database)
236
237 def test_add_project(self) -> None:
238 p = Project('myproject')

Callers

nothing calls this directly

Calls 4

delete_table_groupMethod · 0.95
TableClass · 0.90
TableGroupClass · 0.90
DatabaseClass · 0.90

Tested by

no test coverage detected