Пример #1
0
 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()
Пример #2
0
    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)
Пример #3
0
 def tearDown(self):
     self.app.close()
     db.drop_all()
Пример #4
0
 def tearDown(self):
     try:
         db.drop_all()
     except Exception as ex:
         print ex
Пример #5
0
 def tearDown(self):
     db.drop_all()
Пример #6
0
 def setUp(self):
     try:
         db.drop_all()
     except:
         pass
     db.create_all()