Пример #1
0
def shutdown_session(exception=None):
    db_session.remove()
Пример #2
0
def db():
    yield db_session
    db_session.remove()
Пример #3
0
 def tearDown(self):
     db_session.remove()
     db.drop_all()
Пример #4
0
def after_request(response):
    db_session.remove()
    return response
Пример #5
0
def shutdown_session(exception=None):
    db_session.remove()
Пример #6
0
def after_request(response):
    db_session.remove()
    return response