@@ -70,9 +70,9 @@ def test_to_dict_with_extra_params(self, monkeypatch):
7070 tool = GitHubRepoForkerTool (
7171 github_token = Secret .from_env_var ("GITHUB_TOKEN" ),
7272 raise_on_failure = False ,
73- outputs_to_string = {"source" : "docs " , "handler" : message_handler },
73+ outputs_to_string = {"source" : "repo " , "handler" : message_handler },
7474 inputs_from_state = {"repository" : "repo" },
75- outputs_to_state = {"documents" : {"source" : "docs " , "handler" : message_handler }},
75+ outputs_to_state = {"documents" : {"source" : "repo " , "handler" : message_handler }},
7676 )
7777 tool_dict = tool .to_dict ()
7878 assert tool_dict ["type" ] == "haystack_integrations.tools.github.repo_forker_tool.GitHubRepoForkerTool"
@@ -90,7 +90,7 @@ def test_to_dict_with_extra_params(self, monkeypatch):
9090 == "haystack_integrations.tools.github.utils.message_handler"
9191 )
9292 assert tool_dict ["data" ]["inputs_from_state" ] == {"repository" : "repo" }
93- assert tool_dict ["data" ]["outputs_to_state" ]["documents" ]["source" ] == "docs "
93+ assert tool_dict ["data" ]["outputs_to_state" ]["documents" ]["source" ] == "repo "
9494 assert (
9595 tool_dict ["data" ]["outputs_to_state" ]["documents" ]["handler" ]
9696 == "haystack_integrations.tools.github.utils.message_handler"
@@ -110,7 +110,7 @@ def test_from_dict_with_extra_params(self, monkeypatch):
110110 "inputs_from_state" : {"repository" : "repo" },
111111 "outputs_to_state" : {
112112 "documents" : {
113- "source" : "docs " ,
113+ "source" : "repo " ,
114114 "handler" : "haystack_integrations.tools.github.utils.message_handler" ,
115115 }
116116 },
@@ -124,5 +124,5 @@ def test_from_dict_with_extra_params(self, monkeypatch):
124124 assert tool .raise_on_failure is False
125125 assert tool .outputs_to_string ["handler" ] == message_handler
126126 assert tool .inputs_from_state == {"repository" : "repo" }
127- assert tool .outputs_to_state ["documents" ]["source" ] == "docs "
127+ assert tool .outputs_to_state ["documents" ]["source" ] == "repo "
128128 assert tool .outputs_to_state ["documents" ]["handler" ] == message_handler
0 commit comments