Skip to content

Commit 705ceb9

Browse files
author
malavhs
committed
formating
1 parent bfeb2c0 commit 705ceb9

File tree

5 files changed

+3
-18
lines changed

5 files changed

+3
-18
lines changed

tests/integ/sagemaker/jumpstart/conftest.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
HubContentType,
3131
)
3232

33-
from sagemaker.jumpstart.constants import JUMPSTART_LOGGER
3433

3534
from tests.integ.sagemaker.jumpstart.utils import (
3635
get_test_artifact_bucket,
@@ -46,14 +45,15 @@ def _setup():
4645
test_suit_id = get_test_suite_id()
4746
test_hub_name = f"{HUB_NAME_PREFIX}{test_suit_id}"
4847
test_hub_description = "PySDK Integ Test Private Hub"
48+
4949
os.environ.update({ENV_VAR_JUMPSTART_SDK_TEST_SUITE_ID: test_suit_id})
5050
os.environ.update({ENV_VAR_JUMPSTART_SDK_TEST_HUB_NAME: test_hub_name})
51+
52+
# Create a private hub to use for the test session
5153
hub = Hub(
5254
hub_name=os.environ[ENV_VAR_JUMPSTART_SDK_TEST_HUB_NAME], sagemaker_session=get_sm_session()
5355
)
5456
hub.create(description=test_hub_description)
55-
describe_hub_response = hub.describe()
56-
JUMPSTART_LOGGER.info(f"Describe Hub {describe_hub_response}")
5757

5858

5959
def _teardown():
@@ -62,7 +62,6 @@ def _teardown():
6262
test_cache_bucket = get_test_artifact_bucket()
6363

6464
test_suite_id = os.environ[ENV_VAR_JUMPSTART_SDK_TEST_SUITE_ID]
65-
test_hub_name = os.environ[ENV_VAR_JUMPSTART_SDK_TEST_HUB_NAME]
6665

6766
boto3_session = boto3.Session(region_name=JUMPSTART_DEFAULT_REGION_NAME)
6867

@@ -146,7 +145,6 @@ def _delete_hubs(sagemaker_session):
146145
if hub["HubName"] != SM_JUMPSTART_PUBLIC_HUB_NAME:
147146
# delete all hub contents first
148147
_delete_hub_contents(sagemaker_session, hub["HubName"])
149-
JUMPSTART_LOGGER.info(f"Deleting {hub['HubName']}")
150148
sagemaker_session.delete_hub(hub["HubName"])
151149

152150

@@ -155,7 +153,6 @@ def _delete_hub_contents(sagemaker_session, test_hub_name):
155153
list_hub_content_response = sagemaker_session.list_hub_contents(
156154
hub_name=test_hub_name, hub_content_type=HubContentType.MODEL_REFERENCE.value
157155
)
158-
JUMPSTART_LOGGER.info(f"Listing HubContents {list_hub_content_response}")
159156

160157
# delete hub_contents for the given hub
161158
for models in list_hub_content_response["HubContentSummaries"]:

tests/integ/sagemaker/jumpstart/model/test_jumpstart_model.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@
5656

5757
def test_non_prepacked_jumpstart_model(setup):
5858

59-
JUMPSTART_LOGGER.info("starting test")
60-
JUMPSTART_LOGGER.info(f"get identity {get_sm_session().get_caller_identity_arn()}")
61-
6259
model_id = "catboost-classification-model"
6360

6461
model = JumpStartModel(

tests/integ/sagemaker/jumpstart/private_hub/model/test_jumpstart_private_hub_model.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
import io
1615
import os
17-
import sys
1816
import time
19-
from unittest import mock
20-
import logging
2117

2218
import pytest
2319
from sagemaker.enums import EndpointType

tests/integ/sagemaker/jumpstart/private_hub/test_hub.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import pytest
2-
import os
3-
from unittest.mock import MagicMock, patch
42
from sagemaker.jumpstart.hub.hub import Hub
5-
from sagemaker.jumpstart.constants import JUMPSTART_LOGGER
63

74
from tests.integ.sagemaker.jumpstart.utils import (
85
get_sm_session,

tests/integ/sagemaker/jumpstart/private_hub/test_hub_content.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
import os
32
from sagemaker.jumpstart.hub.hub import Hub
43

@@ -10,7 +9,6 @@
109
from tests.integ.sagemaker.jumpstart.constants import (
1110
ENV_VAR_JUMPSTART_SDK_TEST_HUB_NAME,
1211
)
13-
import tests
1412

1513

1614
def test_hub_model_reference(setup):

0 commit comments

Comments
 (0)