Esempio n. 1
0
def empty_db(config):
    from inbox.ignition import engine_manager
    from inbox.models.session import new_session
    setup_test_db()
    engine = engine_manager.get_for_id(0)
    engine.session = new_session(engine)
    yield engine
    engine.session.close()
Esempio n. 2
0
def empty_db(config):
    from inbox.ignition import engine_manager
    from inbox.models.session import new_session
    setup_test_db()
    engine = engine_manager.get_for_id(0)
    engine.session = new_session(engine)
    yield engine
    engine.session.close()
Esempio n. 3
0
def dbloader(config):
    setup_test_db()
Esempio n. 4
0
def dbloader(config):
    setup_test_db()
Esempio n. 5
0
def base_db(config):
    from inbox.ignition import engine_manager

    create_test_db()
    yield engine_manager
    setup_test_db()
Esempio n. 6
0
def base_db(config):
    from inbox.ignition import engine_manager
    create_test_db()
    yield engine_manager
    setup_test_db()