Skip to content

Commit 7374aaf

Browse files
update
1 parent 6aa216e commit 7374aaf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit/factories/test_agent_factory.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ def test_missing_openai_section(self, config_missing_openai_section):
323323
"""Test factory creation when the entire openai section is missing."""
324324
# This should raise ValueError since OpenAI, Grok, or Groq API key is required
325325
with pytest.raises(
326-
ValueError, match="Either OpenAI, Grok, or Groq API key is required in config."
326+
ValueError,
327+
match="Either OpenAI, Grok, or Groq API key is required in config.",
327328
):
328329
SolanaAgentFactory.create_from_config(config_missing_openai_section)
329330

@@ -1645,7 +1646,8 @@ def test_logfire_config_missing_openai_key(self, logfire_config_missing_openai):
16451646
"""Test handling of Logfire config when OpenAI key is missing."""
16461647
# Based on the current factory code, this should raise a ValueError
16471648
with pytest.raises(
1648-
ValueError, match="Either OpenAI, Grok, or Groq API key is required in config."
1649+
ValueError,
1650+
match="Either OpenAI, Grok, or Groq API key is required in config.",
16491651
):
16501652
SolanaAgentFactory.create_from_config(logfire_config_missing_openai)
16511653

0 commit comments

Comments
 (0)