def db(): config = get_config(['-c', TEST_CONFIG_PATH.as_posix()]) cb_conf = config['couchbase'] setup_db(cb_conf) yield teardown_db(cb_conf)
def db(): test_config = get_config(['-c', TEST_CONFIG_PATH.as_posix()]) setup_db(test_config['postgres']) yield teardown_db(test_config['postgres'])
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'])
def db(): test_config = get_config() setup_db(test_config['postgres']) yield teardown_db(test_config['postgres'])
def db(): test_config = get_config(["-c", TEST_CONFIG_PATH.as_posix()]) setup_db(test_config["postgres"]) yield teardown_db(test_config["postgres"])