Skip to content

Commit 06404dc

Browse files
committed
Fix test_mcp_command_server_flag to accept args parameter
- Updated fake_start function signature to accept args parameter - Fixed assertion to verify method called with correct argument - All 113 tests now passing
1 parent 8f33433 commit 06404dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_commands_more.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ def test_mcp_command_server_flag(parser):
159159
command = MCPCommand(parser)
160160
args = parser.parse_args(['--server'])
161161

162-
async def fake_start():
162+
async def fake_start(args):
163163
return None
164164

165165
with patch.object(command, '_start_mcp_server', side_effect=fake_start) as mock_start:
166166
command.execute(args)
167-
mock_start.assert_called_once()
167+
mock_start.assert_called_once_with(args)
168168

169169

170170
# ValidateCommand error-path tests on helpers

0 commit comments

Comments
 (0)