We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e77f275 commit d0b037dCopy full SHA for d0b037d
tests/adapters/test_chat_adapter.py
@@ -194,7 +194,7 @@ def test_chat_adapter_exception_raised_on_failure():
194
signature = dspy.make_signature("question->answer")
195
adapter = dspy.ChatAdapter()
196
invalid_completion = "{'output':'mismatched value'}"
197
- with pytest.raises(ValueError) as error:
+ with pytest.raises(dspy.utils.exceptions.AdapterParseError, match="Adapter ChatAdapter failed to parse*"):
198
adapter.parse(signature, invalid_completion)
199
200
0 commit comments