Skip to content

Commit ed16488

Browse files
committed
fix tests
1 parent 55f5ca0 commit ed16488

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/toolbox-core/tests/test_e2e.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async def test_run_tool_no_auth(self, toolbox):
113113
)
114114
with pytest.raises(
115115
Exception,
116-
match="One of more of the following authn services are required to invoke this tool: my-test-auth",
116+
match="tool invocation not authorized. Please make sure your specify correct auth headers",
117117
):
118118
await tool(id="2")
119119

@@ -122,7 +122,7 @@ async def test_run_tool_wrong_auth(self, toolbox, auth_token2):
122122
tool = await toolbox.load_tool(
123123
"get-row-by-id-auth",
124124
)
125-
auth_tool = tool.add_auth_token_getters("my-test-auth", lambda: auth_token2)
125+
auth_tool = tool.add_auth_token_getters({"my-test-auth": lambda: auth_token2})
126126
with pytest.raises(
127127
Exception,
128128
match="tool invocation not authorized",
@@ -134,7 +134,7 @@ async def test_run_tool_auth(self, toolbox, auth_token1):
134134
tool = await toolbox.load_tool(
135135
"get-row-by-id-auth",
136136
)
137-
auth_tool = tool.add_auth_token_getters("my-test-auth", lambda: auth_token1)
137+
auth_tool = tool.add_auth_token_getters({"my-test-auth": lambda: auth_token1})
138138
response = await auth_tool(id="2")
139139
assert "row2" in response
140140

0 commit comments

Comments
 (0)