Exemple #1
0
def db():
    config = get_config(['-c', TEST_CONFIG_PATH.as_posix()])
    cb_conf = config['couchbase']

    setup_db(cb_conf)
    yield
    teardown_db(cb_conf)
Exemple #2
0
def db():
    test_config = get_config(['-c', TEST_CONFIG_PATH.as_posix()])

    setup_db(test_config['postgres'])
    yield
    teardown_db(test_config['postgres'])
Exemple #3
0
def db():
    setup_db(TEST_CONFIG['postgres'])
    yield
    teardown_db(TEST_CONFIG['postgres'])
def db():
    test_config = get_config(TEST_CONFIG_PATH)

    setup_db(test_config['postgres'])
    yield
    teardown_db(test_config['postgres'])
Exemple #5
0
def db():
    test_config = get_config()

    setup_db(test_config['postgres'])
    yield
    teardown_db(test_config['postgres'])
Exemple #6
0
def db():
    test_config = get_config(["-c", TEST_CONFIG_PATH.as_posix()])

    setup_db(test_config["postgres"])
    yield
    teardown_db(test_config["postgres"])