def tearDown(self): s3conn = S3Adapter() bucket = s3conn.lookup(app.config["PHOTO_BUCKET"]) assert bucket is not None for key in bucket.get_all_keys(): if key not in self.s3_keys: key.delete() db.drop_all()
def setUp(self): try: db.session.rollback() except Exception as ex: print ex try: db.drop_all() except Exception as ex: print ex db.create_all() self.app = TestApp(app)
def tearDown(self): self.app.close() db.drop_all()
def tearDown(self): try: db.drop_all() except Exception as ex: print ex
def tearDown(self): db.drop_all()
def setUp(self): try: db.drop_all() except: pass db.create_all()