Skip to content

Commit 849e95a

Browse files
author
Dan Choi
committed
update unit tests
1 parent ad331a2 commit 849e95a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/unit/test_image.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,22 +537,20 @@ def test_prepare_serving_volumes_with_local_model(get_data_source_instance, sage
537537

538538
def test_ecr_login_non_ecr():
539539
session_mock = Mock()
540-
result = sagemaker.local.image._ecr_login_if_needed(session_mock, 'ubuntu')
540+
sagemaker.local.image._ecr_login_if_needed(session_mock, 'ubuntu')
541541

542542
session_mock.assert_not_called()
543-
assert result is False
544543

545544

546545
@patch('sagemaker.local.image._check_output', return_value='123451324')
547546
def test_ecr_login_image_exists(_check_output):
548547
session_mock = Mock()
549548

550549
image = '520713654638.dkr.ecr.us-east-1.amazonaws.com/image-i-have:1.0'
551-
result = sagemaker.local.image._ecr_login_if_needed(session_mock, image)
550+
sagemaker.local.image._ecr_login_if_needed(session_mock, image)
552551

553552
session_mock.assert_not_called()
554553
_check_output.assert_called()
555-
assert result is False
556554

557555

558556
@patch('subprocess.check_output', return_value=''.encode('utf-8'))

0 commit comments

Comments
 (0)