Example #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)
Example #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'])
Example #3
0
def db():
    setup_db(TEST_CONFIG['postgres'])
    yield
    teardown_db(TEST_CONFIG['postgres'])
Example #4
0
def db():
    test_config = get_config(TEST_CONFIG_PATH)

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

    setup_db(test_config['postgres'])
    yield
    teardown_db(test_config['postgres'])
Example #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"])