From c865a34ae64dbd8e421080dbf024b9da35b32a1c Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Thu, 7 Aug 2025 14:04:33 -0700 Subject: [PATCH] chore: rename CodexAuth::new() to create_dummy_codex_auth_for_testing() because it is not for general consumption --- codex-rs/core/tests/client.rs | 2 +- codex-rs/login/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/tests/client.rs b/codex-rs/core/tests/client.rs index 2148e874bc..cb99799279 100644 --- a/codex-rs/core/tests/client.rs +++ b/codex-rs/core/tests/client.rs @@ -556,7 +556,7 @@ async fn env_var_overrides_loaded_auth() { } fn create_dummy_codex_auth() -> CodexAuth { - CodexAuth::new( + CodexAuth::create_dummy_codex_auth_for_testing( None, AuthMode::ChatGPT, PathBuf::new(), diff --git a/codex-rs/login/src/lib.rs b/codex-rs/login/src/lib.rs index 0157c77555..0908094b82 100644 --- a/codex-rs/login/src/lib.rs +++ b/codex-rs/login/src/lib.rs @@ -51,7 +51,7 @@ impl PartialEq for CodexAuth { } impl CodexAuth { - pub fn new( + pub fn create_dummy_codex_auth_for_testing( api_key: Option, mode: AuthMode, auth_file: PathBuf,