Refactor tests.

This commit is contained in:
Hemang
2025-04-02 13:40:52 +02:00
committed by Hemang Sarkar
parent 750c83d3f8
commit eced3755b2
13 changed files with 121 additions and 211 deletions
@@ -1,15 +1,15 @@
# For Anthropic and OpenAI tests:
# For Anthropic and OpenAI tests
raise "Madrid detected in the response" if:
(msg: Message)
"Madrid" in msg.content
# For Gemini tests:
# For Gemini tests
raise "Dublin detected in the response" if:
(msg: Message)
(chunk: str) in text(msg.content)
"Dublin" in chunk
# For all provider tests:
# For all provider tests
raise "get_capital is called with Germany as argument" if:
(call: ToolCall)
call is tool:get_capital