We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c847fcc commit bb75cc6Copy full SHA for bb75cc6
tests/unit/agents/test_turnkey.py
@@ -3,6 +3,7 @@
3
from unittest.mock import AsyncMock, MagicMock
4
5
import pytest
6
+from pydantic import ValidationError
7
8
from flare_ai_kit.agents.turnkey import (
9
AgentTransaction,
@@ -124,7 +125,7 @@ def test_confidence_score_validation(self):
124
125
assert transaction.confidence_score == 0.75
126
127
# Invalid confidence scores should raise validation error
- with pytest.raises(ValueError, match="Confidence score must be"):
128
+ with pytest.raises(ValidationError, match="less than or equal to 1"):
129
AgentTransaction(
130
agent_id="test_agent",
131
transaction_request=TransactionRequest(
0 commit comments