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

Method test_project

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

Source from the content-addressed store, hash-verified

27 self.assertEqual((posts, users), (ref.col1[0].table, ref.col2[0].table))
28
29 def test_project(self) -> None:
30 results = PyDBML.parse_file(TEST_DOCS_PATH / 'project.dbml')
31 proj = results.project
32 self.assertEqual(proj.name, 'project_name')
33 self.assertEqual(proj.items, {'database_type': 'PostgreSQL'})
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')

Callers

nothing calls this directly

Calls 1

parse_fileMethod · 0.80

Tested by

no test coverage detected