Skip to content

Commit 60a45df

Browse files
committed
chore: Delint
1 parent 5c5ea26 commit 60a45df

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

packages/toolbox-core/src/toolbox_core/tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ def add_auth_token_getters(
327327
)
328328

329329
return self.__copy(
330-
# create a read-only map for updated getters, params and tokens that are still required
330+
# create read-only values for updated getters, params and tokens
331+
# that are still required
331332
auth_service_token_getters=MappingProxyType(new_getters),
332333
required_authn_params=MappingProxyType(new_req_authn_params),
333334
required_authz_tokens=tuple(new_req_authz_tokens),

packages/toolbox-core/tests/test_client.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -400,35 +400,6 @@ async def test_constructor_getters_missing_fail(self, tool_name, client):
400400
await client.load_tool(tool_name, auth_token_getters={AUTH_SERVICE: {}})
401401

402402

403-
@pytest.mark.asyncio
404-
async def test_add_auth_token_getters_missing_fail(self, tool_name, client):
405-
"""
406-
Tests that adding a missing auth token getter raises ValueError.
407-
"""
408-
AUTH_SERVICE = "xmy-auth-service"
409-
410-
tool = await client.load_tool(tool_name)
411-
412-
with pytest.raises(
413-
ValueError,
414-
match=f"Authentication source\(s\) \`{AUTH_SERVICE}\` unused by tool \`{tool_name}\`.",
415-
):
416-
tool.add_auth_token_getters({AUTH_SERVICE: {}})
417-
418-
@pytest.mark.asyncio
419-
async def test_constructor_getters_missing_fail(self, tool_name, client):
420-
"""
421-
Tests that adding a missing auth token getter raises ValueError.
422-
"""
423-
AUTH_SERVICE = "xmy-auth-service"
424-
425-
with pytest.raises(
426-
ValueError,
427-
match=f"Validation failed for tool '{tool_name}': unused auth tokens: {AUTH_SERVICE}.",
428-
):
429-
await client.load_tool(tool_name, auth_token_getters={AUTH_SERVICE: {}})
430-
431-
432403
class TestBoundParameter:
433404

434405
@pytest.fixture

0 commit comments

Comments
 (0)