Skip to content

Commit 60a204f

Browse files
author
pintaoz
committed
Fix unit test
1 parent 2bca582 commit 60a204f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit_tests/cli/test_cluster_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def test_create_cluster_stack_success(self, mock_hp_cluster_stack_class, mock_lo
330330

331331
from sagemaker.hyperpod.cli.commands.cluster_stack import create_cluster_stack
332332

333-
create_cluster_stack.callback('config.yaml', 'us-west-2', False)
333+
create_cluster_stack.callback('config.yaml', 'us-west-2', 1, False)
334334

335335
mock_load_config.assert_called_once()
336336
mock_filter.assert_called_once_with({'key': 'value'})
@@ -347,7 +347,7 @@ def test_create_cluster_stack_file_not_found(self, mock_exists, mock_get_templat
347347

348348
from sagemaker.hyperpod.cli.commands.cluster_stack import create_cluster_stack
349349

350-
create_cluster_stack.callback('nonexistent.yaml', 'us-west-2', False)
350+
create_cluster_stack.callback('nonexistent.yaml', 'us-west-2', 1, False)
351351

352352
# Assert - function should return early without error
353353
mock_exists.assert_called_once_with('nonexistent.yaml')

0 commit comments

Comments
 (0)