From 69703b1e82d31464cb294e93d0db07bc947f25ba Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sun, 11 Jan 2026 09:18:55 -0500 Subject: [PATCH] Fix test_initialize_model_map_with_env_vars: clear CI env vars --- tests/functional/test_guarded_ai.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/functional/test_guarded_ai.py b/tests/functional/test_guarded_ai.py index 7ef0f24..316b5d7 100644 --- a/tests/functional/test_guarded_ai.py +++ b/tests/functional/test_guarded_ai.py @@ -427,7 +427,10 @@ class TestGuardedAIClientAndErrorHandling(unittest.TestCase): def test_initialize_model_map_with_env_vars(self): """Test model map initialization with environment variables""" + # Clear any existing MODEL_ENDPOINT_* from CI environment test_env = { + "MODEL_ENDPOINT_0": "", # Clear CI's MODEL_ENDPOINT_0 + "MODEL_API_KEY_0": "", "MODEL_ENDPOINT_1": "https://api.test1.com", "MODEL_API_KEY_1": "test-key-1", "MODEL_ENDPOINT_2": "https://api.test2.com",