Skip to content

Commit c0a4e43

Browse files
committed
test: 💚 Remove :z from volumes in unit test assertion
1 parent 4bae16e commit c0a4e43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/sagemaker/local/test_local_image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ def test_train_local_code(get_data_source_instance, tmpdir, sagemaker_session):
513513
assert config["services"][h]["image"] == image
514514
assert config["services"][h]["command"] == "train"
515515
volumes = config["services"][h]["volumes"]
516+
volumes = [v[:-2] if v.endswith(":z") else v for v in volumes]
516517
assert "%s:/opt/ml/code" % "/tmp/code" in volumes
517518
assert "%s:/opt/ml/shared" % shared_folder_path in volumes
518519

@@ -564,6 +565,7 @@ def test_train_local_intermediate_output(get_data_source_instance, tmpdir, sagem
564565
assert config["services"][h]["image"] == image
565566
assert config["services"][h]["command"] == "train"
566567
volumes = config["services"][h]["volumes"]
568+
volumes = [v[:-2] if v.endswith(":z") else v for v in volumes]
567569
assert "%s:/opt/ml/output/intermediate" % intermediate_folder_path in volumes
568570

569571

@@ -670,6 +672,7 @@ def test_serve_local_code(tmpdir, sagemaker_session):
670672
assert config["services"][h]["command"] == "serve"
671673

672674
volumes = config["services"][h]["volumes"]
675+
volumes = [v[:-2] if v.endswith(":z") else v for v in volumes]
673676
assert "%s:/opt/ml/code" % "/tmp/code" in volumes
674677
assert (
675678
"SAGEMAKER_SUBMIT_DIRECTORY=/opt/ml/code"

0 commit comments

Comments
 (0)