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