Skip to content

Commit f27682f

Browse files
authored
fix: enable local mode tests that were skipped (#2273)
1 parent 0e57a1c commit f27682f

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

tests/integ/test_huggingface.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525
@pytest.mark.release
2626
@pytest.mark.skipif(
27-
integ.test_region() in integ.TRAINING_NO_P2_REGIONS, reason="no ml.p2 instances in this region"
27+
integ.test_region() in integ.TRAINING_NO_P2_REGIONS,
28+
reason="no ml.p2 instances in this region",
2829
)
2930
def test_huggingface_training(
3031
sagemaker_session,
@@ -62,7 +63,8 @@ def test_huggingface_training(
6263
)
6364

6465
train_input = hf.sagemaker_session.upload_data(
65-
path=os.path.join(data_path, "train"), key_prefix="integ-test-data/huggingface/train"
66+
path=os.path.join(data_path, "train"),
67+
key_prefix="integ-test-data/huggingface/train",
6668
)
6769

6870
hf.fit(train_input)

tests/integ/test_tfs.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ def tfs_predictor_with_model_and_entry_point_and_dependencies(
9090
tests.integ.DATA_DIR, "tfs/tfs-test-entrypoint-and-dependencies/inference.py"
9191
)
9292
dependencies = [
93-
os.path.join(tests.integ.DATA_DIR, "tfs/tfs-test-entrypoint-and-dependencies/dependency.py")
93+
os.path.join(
94+
tests.integ.DATA_DIR,
95+
"tfs/tfs-test-entrypoint-and-dependencies/dependency.py",
96+
)
9497
]
9598

9699
model_data = "file://" + os.path.join(
@@ -133,7 +136,10 @@ def tfs_predictor_with_accelerator(
133136
name=endpoint_name,
134137
)
135138
predictor = model.deploy(
136-
1, cpu_instance_type, endpoint_name=endpoint_name, accelerator_type="ml.eia1.medium"
139+
1,
140+
cpu_instance_type,
141+
endpoint_name=endpoint_name,
142+
accelerator_type="ml.eia1.medium",
137143
)
138144
yield predictor
139145

@@ -161,9 +167,6 @@ def test_predict_with_accelerator(tfs_predictor_with_accelerator):
161167

162168

163169
@pytest.mark.local_mode
164-
@pytest.mark.skip(
165-
reason="This test is broken due to a regression." "This test should be reenabled later."
166-
)
167170
def test_predict_with_entry_point(tfs_predictor_with_model_and_entry_point_same_tar):
168171
input_data = {"instances": [1.0, 2.0, 5.0]}
169172
expected_result = {"predictions": [4.0, 4.5, 6.0]}
@@ -173,9 +176,6 @@ def test_predict_with_entry_point(tfs_predictor_with_model_and_entry_point_same_
173176

174177

175178
@pytest.mark.local_mode
176-
@pytest.mark.skip(
177-
reason="This test is broken due to a regression." "This test should be reenabled later."
178-
)
179179
def test_predict_with_model_and_entry_point_and_dependencies_separated(
180180
tfs_predictor_with_model_and_entry_point_and_dependencies,
181181
):

0 commit comments

Comments
 (0)