Fix PR6 auth manager test constructor

This commit is contained in:
canvrno-oai
2026-06-16 14:21:57 -07:00
parent 90732871d6
commit 8cc4d2f486

View File

@@ -1,17 +1,20 @@
use super::*;
use codex_config::types::AuthCredentialsStoreMode;
use codex_login::AuthKeyringBackendKind;
use codex_login::AuthRouteConfig;
use pretty_assertions::assert_eq;
#[tokio::test]
async fn cloud_bundle_client_preserves_system_proxy_config() {
let codex_home = tempfile::tempdir().expect("create temp dir");
let auth_manager = AuthManager::new_with_auth_route_config(
let auth_manager = AuthManager::new(
codex_home.path().to_path_buf(),
/*enable_codex_api_key_env*/ false,
AuthCredentialsStoreMode::File,
Some("https://chatgpt.com/backend-api/".to_string()),
Some(AuthRouteConfig::respect_system_proxy()),
/*forced_chatgpt_workspace_id*/ None,
/*chatgpt_base_url*/ Some("https://chatgpt.com/backend-api/".to_string()),
AuthKeyringBackendKind::default(),
/*auth_route_config*/ Some(AuthRouteConfig::respect_system_proxy()),
)
.await;