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

Method test_add_table_bad

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

Source from the content-addressed store, hash-verified

51 self.assertIsNone(t2.database)
52
53 def test_add_table_bad(self) -> None:
54 c = Column('test', 'varchar', True)
55 t = Table('test_table')
56 t.add_column(c)
57 database = Database()
58 database.add_table(t)
59 with self.assertRaises(DatabaseValidationError):
60 database.add_table(t)
61 t2 = Table('test_table')
62 with self.assertRaises(DatabaseValidationError):
63 database.add_table(t2)
64
65 def test_delete_table(self) -> None:
66 c = Column('test', 'varchar', True)

Callers

nothing calls this directly

Calls 5

add_columnMethod · 0.95
add_tableMethod · 0.95
ColumnClass · 0.90
TableClass · 0.90
DatabaseClass · 0.90

Tested by

no test coverage detected