Exemplo n.º 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()
Exemplo n.º 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)
Exemplo n.º 3
0
 def tearDown(self):
     self.app.close()
     db.drop_all()
Exemplo n.º 4
0
 def tearDown(self):
     try:
         db.drop_all()
     except Exception as ex:
         print ex
Exemplo n.º 5
0
 def tearDown(self):
     db.drop_all()
Exemplo n.º 6
0
 def setUp(self):
     try:
         db.drop_all()
     except:
         pass
     db.create_all()