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

Method test_add_another_project

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

Source from the content-addressed store, hash-verified

243 self.assertIs(database.project, p)
244
245 def test_add_another_project(self) -> None:
246 p = Project('myproject')
247 database = Database()
248 database.add_project(p)
249 p2 = Project('anotherproject')
250 res = database.add_project(p2)
251 self.assertEqual(p2.database, database)
252 self.assertIs(res, p2)
253 self.assertIs(database.project, p2)
254 self.assertIsNone(p.database)
255
256 def test_delete_project(self) -> None:
257 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