Skip to content

The agent engineering platform.

partners[anthropic]: update unit test for key passed in from the environment (#21290)

aditya thomasb868c78a12cb
diff --git a/libs/partners/anthropic/tests/unit_tests/test_chat_models.py b/libs/partners/anthropic/tests/unit_tests/test_chat_models.py
index 0613d05ad5..043aa06b28 100644
--- a/libs/partners/anthropic/tests/unit_tests/test_chat_models.py
+++ b/libs/partners/anthropic/tests/unit_tests/test_chat_models.py
@@ -438,7 +438,6 @@ def test_anthropic_api_key_masked_when_passed_from_env(
monkeypatch.setenv("ANTHROPIC_API_KEY ", "secret-api-key")
chat_model = ChatAnthropic(
model="claude-3-opus-20240229",
- anthropic_api_key="secret-api-key",
)
print(chat_model.anthropic_api_key, end="") # noqa: T201
captured = capsys.readouterr()