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

Method test_add_project

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

Source from the content-addressed store, hash-verified

235 self.assertIsNone(tg.database)
236
237 def test_add_project(self) -> None:
238 p = Project('myproject')
239 database = Database()
240 res = database.add_project(p)
241 self.assertEqual(p.database, database)
242 self.assertIs(res, p)
243 self.assertIs(database.project, p)
244
245 def test_add_another_project(self) -> None:
246 p = Project('myproject')

Callers

nothing calls this directly

Calls 3

add_projectMethod · 0.95
ProjectClass · 0.90
DatabaseClass · 0.90

Tested by

no test coverage detected