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