We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 840c7d2 commit 33e5337Copy full SHA for 33e5337
tests/test_tools_extract.py
@@ -88,3 +88,19 @@ def test_extract_tool_runnable_raises_for_invalid_schema_json():
88
HyperbrowserError, match="Invalid JSON string provided for `schema`"
89
):
90
WebsiteExtractTool.runnable(client, params)
91
+
92
93
+def test_extract_tool_async_runnable_raises_for_invalid_schema_json():
94
+ client = _AsyncClient()
95
+ params = {
96
+ "urls": ["https://example.com"],
97
+ "schema": "{invalid-json}",
98
+ }
99
100
+ async def run():
101
+ await WebsiteExtractTool.async_runnable(client, params)
102
103
+ with pytest.raises(
104
+ HyperbrowserError, match="Invalid JSON string provided for `schema`"
105
+ ):
106
+ asyncio.run(run())
0 commit comments