Skip to content

Commit dccaf1b

Browse files
Fix: Removed redundant test for test_add_auth_token_getter_unused_token (#347)
Co-authored-by: Twisha Bansal <[email protected]>
1 parent e861536 commit dccaf1b

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

packages/toolbox-core/tests/test_tool.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -473,35 +473,6 @@ def test_tool_add_auth_token_getters_conflict_with_existing_client_header(
473473
tool_instance.add_auth_token_getters(new_auth_getters_causing_conflict)
474474

475475

476-
def test_add_auth_token_getters_unused_token(
477-
http_session: ClientSession,
478-
sample_tool_params: list[ParameterSchema],
479-
sample_tool_description: str,
480-
unused_auth_getters: Mapping[str, Callable[[], str]],
481-
):
482-
"""
483-
Tests ValueError when add_auth_token_getters is called with a getter for
484-
an unused authentication service.
485-
"""
486-
tool_instance = ToolboxTool(
487-
session=http_session,
488-
base_url=HTTPS_BASE_URL,
489-
name=TEST_TOOL_NAME,
490-
description=sample_tool_description,
491-
params=sample_tool_params,
492-
required_authn_params={},
493-
required_authz_tokens=[],
494-
auth_service_token_getters={},
495-
bound_params={},
496-
client_headers={},
497-
)
498-
499-
expected_error_message = "Authentication source\(s\) \`unused-auth-service\` unused by tool \`sample_tool\`."
500-
501-
with pytest.raises(ValueError, match=expected_error_message):
502-
tool_instance.add_auth_token_getters(unused_auth_getters)
503-
504-
505476
def test_add_auth_token_getter_unused_token(
506477
http_session: ClientSession,
507478
sample_tool_params: list[ParameterSchema],

0 commit comments

Comments
 (0)