File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
tests/integ/sagemaker/jumpstart Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 16
16
import boto3
17
17
import pytest
18
18
from botocore .config import Config
19
+ from sagemaker .session import Session
19
20
from tests .integ .sagemaker .jumpstart .constants import (
20
21
ENV_VAR_JUMPSTART_SDK_TEST_SUITE_ID ,
21
22
JUMPSTART_TAG ,
@@ -48,6 +49,8 @@ def _teardown():
48
49
region_name = JUMPSTART_DEFAULT_REGION_NAME ,
49
50
)
50
51
52
+ sagemaker_session = Session (sagemaker_client = sagemaker_client )
53
+
51
54
search_endpoints_result = sagemaker_client .search (
52
55
Resource = "Endpoint" ,
53
56
SearchExpression = {
@@ -81,7 +84,7 @@ def _teardown():
81
84
for endpoint_name in endpoint_names :
82
85
for (
83
86
inference_component_name
84
- ) in sagemaker_client .list_and_paginate_inference_component_names_associated_with_endpoint (
87
+ ) in sagemaker_session .list_and_paginate_inference_component_names_associated_with_endpoint (
85
88
endpoint_name = endpoint_name
86
89
):
87
90
inference_component_names .append (inference_component_name )
You can’t perform that action at this time.
0 commit comments