Esempio n. 1
0
 def test_add_table(self):
     table = TableHelper.make_table("addtable",
                                    self.cache.metadata,
                                    self.headers)
     self.cache.add_table("addtable", table)
     self.assertIsInstance(self.cache._tables['addtable'],
                           Table)
Esempio n. 2
0
 def test_make_table(self):
     urlsql = "sqlite://"
     sql = SQL(urlsql)
     table = TableHelper.make_table("test",
                                    sql.metadata,
                                    self.headers)
     self.assertIsInstance(table, Table)
Esempio n. 3
0
 def create_table(self, name, headers):
     table = TableHelper.make_table(name, self.metadata, headers)
     table.create(self.engine, checkfirst=True)
     self.add_table(name, table)