Skip to content

Commit 458a375

Browse files
committed
fix formatting
1 parent cb2c160 commit 458a375

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

tests/integ/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from sagemaker.pytorch.estimator import PyTorch
2525
from sagemaker.sklearn.estimator import SKLearn
2626
from sagemaker.sklearn.model import SKLearnModel
27-
from tests.integ import DATA_DIR, PYTHON_VERSION
27+
from tests.integ import DATA_DIR
2828

2929

3030
GIT_REPO = "https://github.com/aws/sagemaker-python-sdk.git"

tests/integ/test_multidatamodel.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,16 +240,20 @@ def test_multi_data_model_deploy_pretrained_models_local_mode(container_image, s
240240

241241

242242
def test_multi_data_model_deploy_trained_model_from_framework_estimator(
243-
container_image, sagemaker_session, cpu_instance_type
243+
container_image, sagemaker_session, cpu_instance_type, mxnet_full_version, mxnet_full_py_version
244244
):
245245
timestamp = sagemaker_timestamp()
246246
endpoint_name = "test-multimodel-endpoint-{}".format(timestamp)
247247
model_name = "test-multimodel-{}".format(timestamp)
248-
mxnet_version = "1.4.1"
249248

250249
with timeout_and_delete_endpoint_by_name(endpoint_name, sagemaker_session):
251-
mxnet_model_1 = __mxnet_training_job(
252-
sagemaker_session, container_image, mxnet_version, cpu_instance_type, 0.1
250+
mxnet_model_1 = _mxnet_training_job(
251+
sagemaker_session,
252+
container_image,
253+
mxnet_full_version,
254+
mxnet_full_py_version,
255+
cpu_instance_type,
256+
0.1,
253257
)
254258
model_data_prefix = os.path.join(
255259
"s3://", sagemaker_session.default_bucket(), "multimodel-{}/".format(timestamp)
@@ -267,8 +271,13 @@ def test_multi_data_model_deploy_trained_model_from_framework_estimator(
267271
multi_data_model.deploy(1, cpu_instance_type, endpoint_name=endpoint_name)
268272

269273
# Train another model
270-
mxnet_model_2 = __mxnet_training_job(
271-
sagemaker_session, container_image, mxnet_version, cpu_instance_type, 0.01
274+
mxnet_model_2 = _mxnet_training_job(
275+
sagemaker_session,
276+
container_image,
277+
mxnet_full_version,
278+
mxnet_full_py_version,
279+
cpu_instance_type,
280+
0.01,
272281
)
273282
# Deploy newly trained model
274283
multi_data_model.add_model(mxnet_model_2.model_data, PRETRAINED_MODEL_PATH_2)
@@ -308,7 +317,7 @@ def test_multi_data_model_deploy_trained_model_from_framework_estimator(
308317
assert "Could not find endpoint" in str(exception.value)
309318

310319

311-
def __mxnet_training_job(
320+
def _mxnet_training_job(
312321
sagemaker_session,
313322
container_image,
314323
mxnet_full_version,

tests/integ/test_neo_mxnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_inferentia_deploy_model(
132132
role,
133133
entry_point=script_path,
134134
framework_version=INF_MXNET_VERSION,
135-
py_version=PYTHON_VERSION,
135+
py_version=NEO_PYTHON_VERSION,
136136
sagemaker_session=sagemaker_session,
137137
)
138138

tests/integ/test_tuner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,9 @@ def test_stop_tuning_job(sagemaker_session, cpu_instance_type):
538538

539539

540540
@pytest.mark.canary_quick
541-
def test_tuning_mxnet(sagemaker_session, mxnet_full_version, mxnet_full_py_version, cpu_instance_type):
541+
def test_tuning_mxnet(
542+
sagemaker_session, mxnet_full_version, mxnet_full_py_version, cpu_instance_type
543+
):
542544
with timeout(minutes=TUNING_DEFAULT_TIMEOUT_MINUTES):
543545
script_path = os.path.join(DATA_DIR, "mxnet_mnist", "mnist.py")
544546
data_path = os.path.join(DATA_DIR, "mxnet_mnist")

0 commit comments

Comments
 (0)