Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Mar 8, 2024
1 parent 6e00364 commit 564b5a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integrations/cohere/tests/test_cohere_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@


class TestCohereGenerator:
def test_init_default(self):
def test_init_default(self, monkeypatch):
monkeypatch.setenv("COHERE_API_KEY", "foo")
component = CohereGenerator()
assert component.api_key == Secret.from_env_var(["COHERE_API_KEY", "CO_API_KEY"])
assert component.model == "command"
Expand Down

0 comments on commit 564b5a7

Please sign in to comment.