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

Method test_table_definition

test/test_docs.py:36–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.assertEqual(proj.note.text, 'Description of the project')
35
36 def test_table_definition(self) -> None:
37 results = PyDBML.parse_file(TEST_DOCS_PATH / 'table_definition.dbml')
38 self.assertEqual(len(results.tables), 1)
39 self.assertEqual(results.tables[0].name, 'table_name')
40
41 table = results.tables[0]
42 self.assertEqual([c.name for c in table.columns], ['column_name', 'example', 'json_column', 'jsonb_column', 'decimal_column'])
43
44 def test_table_alias(self) -> None:
45 results = PyDBML.parse_file(TEST_DOCS_PATH / 'table_alias.dbml')

Callers

nothing calls this directly

Calls 1

parse_fileMethod · 0.80

Tested by

no test coverage detected