Skip to content

Commit

Permalink
tests: Fix failing `TestCohereChatGenerator.test_from_dict_fail_wo_en…
Browse files Browse the repository at this point in the history
…v_var` test (#393)
  • Loading branch information
shadeMe authored Feb 12, 2024
1 parent 09831a6 commit d02286c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integrations/cohere/tests/test_cohere_chat_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def test_from_dict(self, monkeypatch):
@pytest.mark.unit
def test_from_dict_fail_wo_env_var(self, monkeypatch):
monkeypatch.delenv("COHERE_API_KEY", raising=False)
monkeypatch.delenv("CO_API_KEY", raising=False)
data = {
"type": "haystack_integrations.components.generators.cohere.chat.chat_generator.CohereChatGenerator",
"init_parameters": {
Expand Down

0 comments on commit d02286c

Please sign in to comment.