def database(): admin_db_config = load_config( 'deployment/config/admin_config.toml')['database'] test_db_config = load_config( 'deployment/config/test_config.toml')['database'] setup_db(executor_config=admin_db_config, target_config=test_db_config) yield teardown_db(executor_config=admin_db_config, target_config=test_db_config)
def database(): admin_db_config = load_config(BASE_DIR / 'config' / 'admin_config.toml')['database'] test_db_config = load_config(BASE_DIR / 'config' / 'test_config.toml')['database'] setup_db(executor_config=admin_db_config, target_config=test_db_config) yield teardown_db(executor_config=admin_db_config, target_config=test_db_config)
def database(): db_settings = get_config(['-c', TEST_CONFIG.as_posix()])['database_settings'] setup_db(db_settings) yield teardown_db(db_settings)