Skip to content

Commit f06c140

Browse files
Skipping manual tests
1 parent b2c0987 commit f06c140

File tree

3 files changed

+12
-26
lines changed

3 files changed

+12
-26
lines changed

sagemaker_ssh_helper/cdk/tests/unit/test_cdk_stack.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/test_ide.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def test_sagemaker_studio(instances, request):
124124

125125

126126
@pytest.mark.parametrize('instances', SSH_TEST_IMAGES)
127-
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false")
127+
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false",
128+
reason="Manual test")
128129
def test_sagemaker_studio_cleanup(instances, request):
129130
user, app_name, image_name, instance_type, expected_version = instances
130131

tests/test_manual.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515

1616
# noinspection DuplicatedCode
17-
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false")
17+
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false",
18+
reason="Manual test")
1819
def test_train_placeholder_manual():
1920
bucket = sagemaker.Session().default_bucket()
2021
checkpoints_prefix = f"s3://{bucket}/checkpoints/"
@@ -48,7 +49,8 @@ def test_train_placeholder_manual():
4849
ssh_wrapper.wait_training_job()
4950

5051

51-
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false")
52+
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false",
53+
reason="Manual test")
5254
def test_processing_framework_manual():
5355
torch_processor = PyTorchProcessor(
5456
base_job_name='ssh-pytorch-processing-manual',
@@ -78,7 +80,8 @@ def test_processing_framework_manual():
7880
ssh_wrapper.wait_processing_job()
7981

8082

81-
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false")
83+
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false",
84+
reason="Manual test")
8285
def test_inference_manual():
8386
estimator = PyTorch.attach("pytorch-training-2023-02-21-23-58-16-252")
8487

@@ -102,7 +105,8 @@ def test_inference_manual():
102105
ssh_wrapper.wait_for_endpoint()
103106

104107

105-
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false")
108+
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false",
109+
reason="Manual test")
106110
def test_djl_inference():
107111
predictor = DJLPredictor("djl-inference-ssh-2023-05-15-16-26-57-895")
108112
data = {
@@ -118,7 +122,8 @@ def test_djl_inference():
118122
assert result == "42"
119123

120124

121-
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false")
125+
@pytest.mark.skipif(os.getenv('PYTEST_IGNORE_SKIPS', "false") == "false",
126+
reason="Manual test")
122127
def test_subprocess():
123128
import subprocess
124129
subprocess.check_call("uname -a".split(' '))

0 commit comments

Comments
 (0)