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)
def test_make_table(self): urlsql = "sqlite://" sql = SQL(urlsql) table = TableHelper.make_table("test", sql.metadata, self.headers) self.assertIsInstance(table, Table)
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)