mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-01-09 15:38:08 -05:00
test: do not skip fixed tests (#201)
This commit is contained in:
@@ -87,6 +87,7 @@ class TestE2EClient:
|
||||
|
||||
##### Auth tests
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.skip(reason="b/389574566")
|
||||
async def test_run_tool_unauth_with_auth(self, toolbox, auth_token2):
|
||||
"""Tests running a tool that doesn't require auth, with auth provided."""
|
||||
tool = await toolbox.load_tool(
|
||||
@@ -105,14 +106,14 @@ class TestE2EClient:
|
||||
await tool.arun({"id": "2"})
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.skip(reason="b/388259742")
|
||||
async def test_run_tool_wrong_auth(self, toolbox, auth_token2):
|
||||
"""Tests running a tool with incorrect auth."""
|
||||
toolbox.add_auth_token("my-test-auth", lambda: auth_token2)
|
||||
tool = await toolbox.load_tool(
|
||||
"get-row-by-id-auth",
|
||||
)
|
||||
with pytest.raises(ClientResponseError, match="401, message='Unauthorized'"):
|
||||
# TODO: Fix error message (b/389577313)
|
||||
with pytest.raises(ClientResponseError, match="400, message='Bad Request'"):
|
||||
await tool.arun({"id": "2"})
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user