File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,10 @@ def boto_config(request):
46
46
47
47
@pytest .fixture (scope = 'session' )
48
48
def sagemaker_session (sagemaker_client_config , sagemaker_runtime_config , boto_config ):
49
- sagemaker_client = boto3 .client ('sagemaker' , ** sagemaker_client_config ) if sagemaker_client_config else None
50
- runtime_client = boto3 .client ('sagemaker-runtime' , ** sagemaker_runtime_config ) if sagemaker_runtime_config else None
51
49
boto_session = boto3 .Session (** boto_config ) if boto_config else boto3 .Session (region_name = DEFAULT_REGION )
50
+ sagemaker_client = boto_session .client ('sagemaker' , ** sagemaker_client_config ) if sagemaker_client_config else None
51
+ runtime_client = (boto_session .client ('sagemaker-runtime' , ** sagemaker_runtime_config ) if sagemaker_runtime_config
52
+ else None )
52
53
53
54
return Session (boto_session = boto_session ,
54
55
sagemaker_client = sagemaker_client ,
You can’t perform that action at this time.
0 commit comments