[Fix] Update test scripts, all test can pass before this commit

This commit is contained in:
2025-07-12 01:23:23 +08:00
parent 78503a07e9
commit b950e24fef
4 changed files with 27 additions and 6 deletions

View File

@ -141,7 +141,8 @@ class TestManager(unittest.TestCase):
with self.assertRaises(IndexError):
manager.execute_service_operation(0)
mock_logger.error.assert_called()
# 验证错误日志记录
mock_logger.error.assert_called_with("Invalid service index: 0")
if __name__ == "__main__":