Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ evals = [

[tool.uv]
override-dependencies = [
"openai>=1.108.0", # Override appworld-experiments' openai<=1.99.8 constraint
"openai[aiohttp]>=1.108.0", # Override appworld-experiments' openai<=1.99.8 constraint
]

[tool.uv.sources]
Expand Down Expand Up @@ -119,4 +119,4 @@ ignore_errors = true

[[tool.mypy.overrides]]
module = "tests.benchmarks.appworld.mcp_server"
disable_error_code = ["attr-defined", "no-untyped-call", "misc"]
disable_error_code = ["attr-defined", "no-untyped-call", "misc"]
11 changes: 9 additions & 2 deletions tests/unit/utils/test_handlers_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ def test_all_type_conversions(self) -> None:
assert json_schema_to_python_type({"type": "boolean"}) == "bool"
assert json_schema_to_python_type({"type": "null"}) == "None"
assert json_schema_to_python_type({"type": "array", "items": {"type": "string"}}) == "list[str]"
nested_array = {"type": "array", "items": {"type": "array", "items": {"type": "integer"}}}
nested_array = {
"type": "array",
"items": {"type": "array", "items": {"type": "integer"}},
}
assert json_schema_to_python_type(nested_array) == "list[list[int]]"
obj_schema = {"type": "object", "properties": {"key": {"type": "string"}}}
assert json_schema_to_python_type(obj_schema) == "dict[str, Any]"
Expand Down Expand Up @@ -125,7 +128,11 @@ class TestGenerateMethodStub:
"""Tests for generate_method_stub function."""

def test_all_tool_types(
self, tool_with_params: Tool, tool_with_enum: Tool, tool_with_boolean: Tool, empty_tool: Tool
self,
tool_with_params: Tool,
tool_with_enum: Tool,
tool_with_boolean: Tool,
empty_tool: Tool,
) -> None:
"""Test generating method stubs for all tool types."""
# Test simple tool with parameters
Expand Down
35 changes: 29 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.