Skip to content

Commit c9cc193

Browse files
committed
fix: flake8
1 parent ade4453 commit c9cc193

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

tests/unit/sagemaker/jumpstart/factory/test_estimator.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"). You
4+
# may not use this file except in compliance with the License. A copy of
5+
# the License is located at
6+
#
7+
# http://aws.amazon.com/apache2.0/
8+
#
9+
# or in the "license" file accompanying this file. This file is
10+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11+
# ANY KIND, either express or implied. See the License for the specific
12+
# language governing permissions and limitations under the License.
13+
from __future__ import absolute_import
114
import pytest
2-
from unittest.mock import patch, Mock
15+
from unittest.mock import patch
316
from sagemaker.jumpstart.factory.estimator import (
417
_add_model_uri_to_kwargs,
518
get_model_info_default_kwargs,

tests/unit/sagemaker/jumpstart/test_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ def test_use_training_model_artifact_with_package_uris(self, mock_specs):
361361
None
362362
)
363363
mock_specs.training_model_package_artifact_uris = {
364-
"ml.p3.2xlarge": "arn:aws:sagemaker:ap-southeast-1:192199979996:model-package/llama2-13b-e155a2e0347b323fb882f1875851c5d3"
364+
"ml.p3.2xlarge": "arn:aws:sagemaker:ap-southeast-1:192199979996:model-package/"
365+
"llama2-13b-e155a2e0347b323fb882f1875851c5d3"
365366
}
366367

367368
result = JumpStartModelSpecs.use_training_model_artifact(mock_specs)

0 commit comments

Comments
 (0)