Skip to content

Commit

Permalink
minor on format
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhichao2000 authored Jan 3, 2024
1 parent 065609d commit 8e30f92
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/community/tests/unit_tests/tools/requests/test_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def mock_json_requests_wrapper() -> JsonRequestsWrapper:


def test_requests_get_tool_json(
mock_json_requests_wrapper: JsonRequestsWrapper
mock_json_requests_wrapper: JsonRequestsWrapper,
) -> None:
tool = RequestsGetTool(requests_wrapper=mock_json_requests_wrapper)
assert tool.run("https://example.com") == {"response": "get_response"}
Expand All @@ -162,7 +162,7 @@ def test_requests_get_tool_json(


def test_requests_post_tool_json(
mock_json_requests_wrapper: JsonRequestsWrapper
mock_json_requests_wrapper: JsonRequestsWrapper,
) -> None:
tool = RequestsPostTool(requests_wrapper=mock_json_requests_wrapper)
input_text = '{"url": "https://example.com", "data": {"key": "value"}}'
Expand All @@ -171,7 +171,7 @@ def test_requests_post_tool_json(


def test_requests_patch_tool_json(
mock_json_requests_wrapper: JsonRequestsWrapper
mock_json_requests_wrapper: JsonRequestsWrapper,
) -> None:
tool = RequestsPatchTool(requests_wrapper=mock_json_requests_wrapper)
input_text = '{"url": "https://example.com", "data": {"key": "value"}}'
Expand All @@ -180,7 +180,7 @@ def test_requests_patch_tool_json(


def test_requests_put_tool_json(
mock_json_requests_wrapper: JsonRequestsWrapper
mock_json_requests_wrapper: JsonRequestsWrapper,
) -> None:
tool = RequestsPutTool(requests_wrapper=mock_json_requests_wrapper)
input_text = '{"url": "https://example.com", "data": {"key": "value"}}'
Expand All @@ -189,7 +189,7 @@ def test_requests_put_tool_json(


def test_requests_delete_tool_json(
mock_json_requests_wrapper: JsonRequestsWrapper
mock_json_requests_wrapper: JsonRequestsWrapper,
) -> None:
tool = RequestsDeleteTool(requests_wrapper=mock_json_requests_wrapper)
assert tool.run("https://example.com") == {"response": "delete_response"}
Expand Down

0 comments on commit 8e30f92

Please sign in to comment.