Skip to content

Commit 5ee4e15

Browse files
author
Anton Repushko
committed
Improvements of the integration tests
1 parent 32f62fd commit 5ee4e15

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/integ/auto_ml_v2_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
item_identifier_attribute_name="item_id",
7070
target_attribute_name="target",
7171
timestamp_attribute_name="timestamp",
72+
forecast_quantiles=["p10", "p50", "p90"],
7273
),
7374
}
7475

tests/integ/test_auto_ml_v2.py

+8
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ def test_list_candidates(
251251

252252
candidates = auto_ml.list_candidates(job_name=job_name)
253253
assert len(candidates) == num_candidates
254+
else:
255+
pytest.skip("The job hasn't finished yet")
254256

255257

256258
@pytest.mark.skipif(
@@ -320,6 +322,8 @@ def test_best_candidate(
320322
best_candidate = auto_ml.best_candidate(job_name=job_name)
321323
assert len(best_candidate["InferenceContainers"]) == num_containers
322324
assert best_candidate["CandidateStatus"] == "Completed"
325+
else:
326+
pytest.skip("The job hasn't finished yet")
323327

324328

325329
@pytest.mark.skipif(
@@ -411,6 +415,8 @@ def test_deploy_best_candidate(
411415
)["EndpointStatus"]
412416
assert endpoint_status == "InService"
413417
sagemaker_session.sagemaker_client.delete_endpoint(EndpointName=endpoint_name)
418+
else:
419+
pytest.skip("The job hasn't finished yet")
414420

415421

416422
@pytest.mark.skipif(
@@ -482,3 +488,5 @@ def test_candidate_estimator_get_steps(
482488
candidate_estimator = CandidateEstimator(candidate, sagemaker_session)
483489
steps = candidate_estimator.get_steps()
484490
assert len(steps) == num_steps
491+
else:
492+
pytest.skip("The job hasn't finished yet")

0 commit comments

Comments
 (0)