MCPcopy Index your code
hub / github.com/Vanderhoof/PyDBML / test_table_notes

Method test_table_notes

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

Source from the content-addressed store, hash-verified

54 self.assertEqual((u, posts), (ref.col1[0].table, ref.col2[0].table))
55
56 def test_table_notes(self) -> None:
57 results = PyDBML.parse_file(TEST_DOCS_PATH / 'table_notes.dbml')
58 self.assertEqual(len(results.tables), 1)
59 self.assertEqual(results.tables[0].name, 'users')
60
61 table = results.tables[0]
62 self.assertEqual([c.name for c in table.columns], ['id', 'status'])
63 self.assertEqual(table.note.text, 'Stores user data')
64 self.assertEqual(table['status'].note.text, 'status')
65
66 def test_column_settings(self) -> None:
67 results = PyDBML.parse_file(TEST_DOCS_PATH / 'column_settings.dbml')

Callers

nothing calls this directly

Calls 1

parse_fileMethod · 0.80

Tested by

no test coverage detected