Skip to content

Commit 214934a

Browse files
Format UTF-8 tool response handling tests
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 8f4a099 commit 214934a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_tools_response_handling.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ def test_screenshot_tool_rejects_non_string_screenshot_field():
346346

347347

348348
def test_screenshot_tool_decodes_utf8_bytes_field():
349-
client = _SyncScrapeClient(_Response(data=SimpleNamespace(screenshot=b"image-data")))
349+
client = _SyncScrapeClient(
350+
_Response(data=SimpleNamespace(screenshot=b"image-data"))
351+
)
350352

351353
output = WebsiteScreenshotTool.runnable(client, {"url": "https://example.com"})
352354

@@ -504,7 +506,9 @@ def test_browser_use_tool_rejects_non_string_final_result():
504506

505507

506508
def test_browser_use_tool_decodes_utf8_bytes_final_result():
507-
client = _SyncBrowserUseClient(_Response(data=SimpleNamespace(final_result=b"done")))
509+
client = _SyncBrowserUseClient(
510+
_Response(data=SimpleNamespace(final_result=b"done"))
511+
)
508512

509513
output = BrowserUseTool.runnable(client, {"task": "search docs"})
510514

0 commit comments

Comments
 (0)