test: do not skip fixed tests (#201)

This commit is contained in:
Twisha Bansal
2025-01-13 16:54:04 +05:30
committed by GitHub
parent d8ffbc68ee
commit 61627803db

View File

@@ -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