Esempio n. 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()
Esempio n. 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)
Esempio n. 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)
Esempio n. 4
0
 def tearDown(self):
     super(self.__class__, self).tearDown()
     db.session.remove()
     db.drop_all(app=self.app)
Esempio n. 5
0
 def tearDown(self):
     db.drop_all(app=self.app)
Esempio n. 6
0
 def tearDown(self):
     httpretty.disable()
     httpretty.reset()
     self.bootstrap_user = None
     self.real_user = None
     db.drop_all(app=self.app)
Esempio n. 7
0
 def tearDown(self):
     super(self.__class__, self).tearDown()
     db.session.remove()
     db.drop_all(app=self.app)
Esempio n. 8
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()