Skip to content

Commit 810aa38

Browse files
author
Mohamed Zeidan
committed
fixed unit test
1 parent 83243d4 commit 810aa38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unit_tests/cli/test_training.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_pytorch_describe_error(self, mock_hyperpod_pytorch_job):
231231
# Call the function and expect an exception
232232
result = self.runner.invoke(pytorch_describe, ["--job-name", "test-job"])
233233
self.assertNotEqual(result.exit_code, 0)
234-
self.assertIn("Failed to describe job", result.output)
234+
self.assertIn("Test error", result.output)
235235

236236

237237
@unittest.skipUnless(PYDANTIC_AVAILABLE, "Pydantic model not available")
@@ -700,4 +700,3 @@ def test_comprehensive_valid_config(self):
700700
self.assertEqual(config.max_retry, 3)
701701
self.assertEqual(len(config.volume), 1)
702702
self.assertEqual(config.service_account_name, "training-sa")
703-

0 commit comments

Comments
 (0)