def shutdown_session(exception=None): db_session.remove()
def db(): yield db_session db_session.remove()
def tearDown(self): db_session.remove() db.drop_all()
def after_request(response): db_session.remove() return response
def shutdown_session(exception=None): db_session.remove()
def after_request(response): db_session.remove() return response