Skip to content

Commit ccf7ba2

Browse files
committed
Since contains ignore case by default, update the tests.
1 parent ed239d0 commit ccf7ba2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/testing/Examples/langgraph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_weather_agent_with_only_sf(weather_agent):
6363
assert_true(F.len(find_weather_tool_calls) == 1)
6464
assert_true(
6565
find_weather_tool_calls[0]["function"]["arguments"].contains(
66-
"San Francisco"
66+
"San francisco"
6767
)
6868
)
6969

docs/testing/Examples/swarm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_capital_finder_agent_when_capital_found(swarm_wrapper):
7070
"France", get_capital_tool_calls[0]["function"]["arguments"]["country_name"]
7171
)
7272

73-
assert_true(trace.messages(-1)["content"].contains("Paris"))
73+
assert_true(trace.messages(-1)["content"].contains("paris"))
7474
```
7575

7676
We first use the `tool_calls()` method to retrieve all tool calls where the name is `get_capital`. Then, we assert that there is exactly one such tool call. We also assert that the argument `country_name` passed to the tool call is `France`. Additionally, we verify that the last message contains `Paris`, our desired answer.

0 commit comments

Comments
 (0)