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

Method test_iter

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

Source from the content-addressed store, hash-verified

285 database['wrong']
286
287 def test_iter(self) -> None:
288 t1 = Table('table1')
289 t2 = Table('table2')
290 database = Database()
291 database.add_table(t1)
292 database.add_table(t2)
293 self.assertEqual(list(iter(database)), [t1, t2])
294
295 def test_add(self) -> None:
296 t1 = Table('table1')

Callers

nothing calls this directly

Calls 3

add_tableMethod · 0.95
TableClass · 0.90
DatabaseClass · 0.90

Tested by

no test coverage detected