File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
tests/unittests/tools/mcp_tool Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,14 @@ def test_error_log(self):
9696 toolset = MCPToolset (connection_params = self .mock_stdio_params )
9797 assert toolset .errlog == sys .stderr
9898
99- def test_auth_credential_updates (self ):
100- """Test setting auth credential."""
101- toolset = MCPToolset (connection_params = self .mock_stdio_params )
102- toolset ._auth_credential = "test_auth_credential"
103- assert toolset .auth_credential == "test_auth_credential"
99+ def test_auth_credential_with_value (self ):
100+ """Test getting auth credential when provided at initialization."""
101+ mock_credential = Mock (spec = AuthCredential )
102+ toolset = MCPToolset (
103+ connection_params = self .mock_stdio_params ,
104+ auth_credential = mock_credential ,
105+ )
106+ assert toolset .auth_credential == mock_credential
104107
105108 def test_init_with_stdio_connection_params (self ):
106109 """Test initialization with StdioConnectionParams."""
You can’t perform that action at this time.
0 commit comments