コード例 #1
0
 def setUp(self):
     # Drop the existing model tables.
     Model.metadata.drop_all(config.db.engine)
     # Drop leftover tables (e.g. Alembic & Storm schema versions).
     md = MetaData()
     md.reflect(bind=config.db.engine)
     for table in md.sorted_tables:
         table.drop(config.db.engine)
     self.schema_mgr = SchemaManager(config.db)