Пример #1
0
def shutdown_session(exception=None):
    db_session.commit()
    db_session.remove()
Пример #2
0
 def teardown(self):
     db_session.remove()
     drop_all()
     self.ctx.pop()