mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
Fix PR6 auth manager test constructor
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user