示例#1
0
 def tearDown(self):
     # [hack]
     # When testing, an app is created for every single test but the limiter is
     # always the same. We make sure that the new app forgets about routes and
     # limits set with the previous app instance (or limit registration will be
     # triggered more than once)
     self.app.extensions['limiter'].forget()
     # [/hack]
     db.session.remove()
     db.drop_all()
示例#2
0
 def tearDown(self):
     # [hack]
     # When testing, an app is created for every single test but the limiter is
     # always the same. We make sure that the new app forgets about routes and
     # limits set with the previous app instance (or limit registration will be
     # triggered more than once)
     self.app.extensions['limiter'].forget()
     # [/hack]
     httpretty.disable()
     httpretty.reset()
     self.bootstrap_user = None
     self.real_user = None
     db.drop_all(app=self.app)
示例#3
0
 def tearDown(self):
     # [hack]
     # When testing, an app is created for every single test but the limiter is
     # always the same. We make sure that the new app forgets about routes and
     # limits set with the previous app instance (or limit registration will be
     # triggered more than once)
     self.app.extensions['limiter'].forget()
     # [/hack]
     httpretty.disable()
     httpretty.reset()
     self.bootstrap_user = None
     self.real_user = None
     db.drop_all(app=self.app)
示例#4
0
文件: test_api.py 项目: adsabs/adsws
 def tearDown(self):
     super(self.__class__, self).tearDown()
     db.session.remove()
     db.drop_all(app=self.app)
示例#5
0
 def tearDown(self):
     db.drop_all(app=self.app)
示例#6
0
 def tearDown(self):
     httpretty.disable()
     httpretty.reset()
     self.bootstrap_user = None
     self.real_user = None
     db.drop_all(app=self.app)
示例#7
0
 def tearDown(self):
     super(self.__class__, self).tearDown()
     db.session.remove()
     db.drop_all(app=self.app)
示例#8
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()