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

Method test_delete_missing_table

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

Source from the content-addressed store, hash-verified

76 self.assertNotIn('myalias', database.table_dict)
77
78 def test_delete_missing_table(self) -> None:
79 t = Table('test_table')
80 database = Database()
81 with self.assertRaises(DatabaseValidationError):
82 database.delete_table(t)
83 self.assertIsNone(t.database, database)
84
85 def test_add_reference(self) -> None:
86 c = Column('test', 'varchar', True)

Callers

nothing calls this directly

Calls 3

delete_tableMethod · 0.95
TableClass · 0.90
DatabaseClass · 0.90

Tested by

no test coverage detected