Skip to content

Commit 22c29f6

Browse files
author
Ashwin Krishna
committed
fix: remove failing deprecated tests from suite
1 parent e163807 commit 22c29f6

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

tests/integ/test_mxnet.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -384,42 +384,6 @@ def test_deploy_model_and_update_endpoint(
384384
assert new_config["ProductionVariants"][0]["InitialInstanceCount"] == 1
385385

386386

387-
@pytest.mark.skipif(
388-
tests.integ.test_region() not in tests.integ.EI_SUPPORTED_REGIONS,
389-
reason="EI isn't supported in that specific region.",
390-
)
391-
def test_deploy_model_with_accelerator(
392-
mxnet_training_job,
393-
sagemaker_session,
394-
mxnet_eia_latest_version,
395-
mxnet_eia_latest_py_version,
396-
cpu_instance_type,
397-
):
398-
endpoint_name = unique_name_from_base("test-mxnet-deploy-model-ei")
399-
400-
with timeout_and_delete_endpoint_by_name(endpoint_name, sagemaker_session):
401-
desc = sagemaker_session.sagemaker_client.describe_training_job(
402-
TrainingJobName=mxnet_training_job
403-
)
404-
model_data = desc["ModelArtifacts"]["S3ModelArtifacts"]
405-
script_path = os.path.join(DATA_DIR, "mxnet_mnist", "mnist_ei.py")
406-
model = MXNetModel(
407-
model_data,
408-
"SageMakerRole",
409-
entry_point=script_path,
410-
framework_version=mxnet_eia_latest_version,
411-
py_version=mxnet_eia_latest_py_version,
412-
sagemaker_session=sagemaker_session,
413-
)
414-
predictor = model.deploy(
415-
1, cpu_instance_type, endpoint_name=endpoint_name, accelerator_type="ml.eia1.medium"
416-
)
417-
418-
data = numpy.zeros(shape=(1, 1, 28, 28))
419-
result = predictor.predict(data)
420-
assert result is not None
421-
422-
423387
def test_deploy_model_with_serverless_inference_config(
424388
mxnet_training_job,
425389
sagemaker_session,

tests/integ/test_tfs.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,6 @@ def test_predict(tfs_predictor):
152152
result = tfs_predictor.predict(input_data)
153153
assert expected_result == result
154154

155-
156-
@pytest.mark.skipif(
157-
tests.integ.test_region() not in tests.integ.EI_SUPPORTED_REGIONS,
158-
reason="EI is not supported in region {}".format(tests.integ.test_region()),
159-
)
160-
@pytest.mark.release
161-
def test_predict_with_accelerator(tfs_predictor_with_accelerator):
162-
input_data = {"instances": [1.0, 2.0, 5.0]}
163-
expected_result = {"predictions": [3.5, 4.0, 5.5]}
164-
165-
result = tfs_predictor_with_accelerator.predict(input_data)
166-
assert expected_result == result
167-
168-
169155
@pytest.mark.local_mode
170156
def test_predict_with_entry_point(tfs_predictor_with_model_and_entry_point_same_tar):
171157
input_data = {"instances": [1.0, 2.0, 5.0]}

0 commit comments

Comments
 (0)