Skip to content

Commit 678febc

Browse files
Python: fix dict access on ToolInvocation dataclass in test_tools.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7749cb0 commit 678febc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/e2e/test_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def db_query(params: DbQueryParams, invocation: ToolInvocation) -> list[City]:
110110
assert params.query.table == "cities"
111111
assert params.query.ids == [12, 19]
112112
assert params.query.sortAscending is True
113-
assert invocation["session_id"] == expected_session_id
113+
assert invocation.session_id == expected_session_id
114114

115115
return [
116116
City(countryId=19, cityName="Passos", population=135460),

0 commit comments

Comments
 (0)