MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / errors

Function errors

tests/lib/tools/toolsets/test_surface.py:153–156  ·  view source on GitHub ↗
(change: dict[str, Any])

Source from the content-addressed store, hash-verified

151 assert state.state_changes[3] == BetaDialogDismissed(kind="confirm", message="Sure?")
152
153 def errors(change: dict[str, Any]) -> list[Any]:
154 with pytest.raises(pydantic.ValidationError) as caught:
155 BetaBrowserState(tabs=[], state_changes=[cast(Any, change)])
156 return caught.value.errors()
157
158 (missing,) = errors({"download_id": "d1", "url": "https://a.test/f"})
159 assert "'type'" in missing["msg"]

Calls 1

BetaBrowserStateClass · 0.85

Tested by

no test coverage detected