Exemplo n.º 1
0
def session():
    maker = support.session_maker()
    pre_sess = maker()
    for f in fixtures:
        pre_sess.add(db.Prices(**f))
    pre_sess.commit()
    pre_sess.close()

    return maker()
Exemplo n.º 2
0
def app():
    middleware = [db.SessionManager(support.session_maker())]
    return api.create_api(middleware)
Exemplo n.º 3
0
def with_fixtures():
    pre_sess = support.session_maker()()
    for f in fixtures:
        pre_sess.add(storage.Prices(**f))
    pre_sess.commit()
    pre_sess.close()