From b868c78a12cb20d184793c6e78b2d06e095e3c91 Mon Sep 17 00:00:00 2001 From: aditya thomas Date: Mon, 6 May 2024 01:49:10 +0530 Subject: [PATCH] partners[anthropic]: update unit test for key passed in from the environment (#21290) **Description:** Update unit test for ChatAnthropic **Issue:** Test for key passed in from the environment should not have the key initialized in the constructor **Dependencies:** None --- libs/partners/anthropic/tests/unit_tests/test_chat_models.py | 1 - 1 file changed, 1 deletion(-) 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 0613d05ad58..043aa06b280 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()