File tree Expand file tree Collapse file tree 3 files changed +24
-24
lines changed
tests/integ/sagemaker/lineage Expand file tree Collapse file tree 3 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,10 @@ def test_tag(action_obj, sagemaker_session):
90
90
)["Tags" ]
91
91
if actual_tags :
92
92
break
93
-
94
- if len ( actual_tags ) == 1 :
95
- assert len (actual_tags ) == 1
96
- assert actual_tags [0 ] == tag
93
+ # When sagemaker-client-config endpoint-url is passed as argument to hit beta,
94
+ # length of actual tags will be 2
95
+ assert len (actual_tags ) > 0
96
+ assert actual_tags [0 ] == tag
97
97
98
98
99
99
def test_tags (action_obj , sagemaker_session ):
@@ -106,7 +106,7 @@ def test_tags(action_obj, sagemaker_session):
106
106
)["Tags" ]
107
107
if actual_tags :
108
108
break
109
-
110
- if len ( actual_tags ) == 1 :
111
- assert len (actual_tags ) == 1
112
- assert actual_tags == tags
109
+ # When sagemaker-client-config endpoint-url is passed as argument to hit beta,
110
+ # length of actual tags will be 2
111
+ assert len (actual_tags ) > 0
112
+ assert [ actual_tags [ - 1 ]] == tags
Original file line number Diff line number Diff line change @@ -99,10 +99,10 @@ def test_tag(artifact_obj, sagemaker_session):
99
99
)["Tags" ]
100
100
if actual_tags :
101
101
break
102
-
103
- if len ( actual_tags ) == 1 :
104
- assert len (actual_tags ) == 1
105
- assert actual_tags [0 ] == tag
102
+ # When sagemaker-client-config endpoint-url is passed as argument to hit beta,
103
+ # length of actual tags will be 2
104
+ assert len (actual_tags ) > 0
105
+ assert actual_tags [0 ] == tag
106
106
107
107
108
108
def test_tags (artifact_obj , sagemaker_session ):
@@ -115,7 +115,7 @@ def test_tags(artifact_obj, sagemaker_session):
115
115
)["Tags" ]
116
116
if actual_tags :
117
117
break
118
-
119
- if len ( actual_tags ) == 1 :
120
- assert len (actual_tags ) == 1
121
- assert actual_tags == tags
118
+ # When sagemaker-client-config endpoint-url is passed as argument to hit beta,
119
+ # length of actual tags will be 2
120
+ assert len (actual_tags ) > 0
121
+ assert [ actual_tags [ - 1 ]] == tags
Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ def test_tag(context_obj, sagemaker_session):
88
88
)["Tags" ]
89
89
if actual_tags :
90
90
break
91
-
92
- if len ( actual_tags ) == 1 :
93
- assert len (actual_tags ) == 1
94
- assert actual_tags [0 ] == tag
91
+ # When sagemaker-client-config endpoint-url is passed as argument to hit beta,
92
+ # length of actual tags will be 2
93
+ assert len (actual_tags ) > 0
94
+ assert actual_tags [0 ] == tag
95
95
96
96
97
97
def test_tags (context_obj , sagemaker_session ):
@@ -104,7 +104,7 @@ def test_tags(context_obj, sagemaker_session):
104
104
)["Tags" ]
105
105
if actual_tags :
106
106
break
107
-
108
- if len ( actual_tags ) == 1 :
109
- assert len (actual_tags ) == 1
110
- assert actual_tags == tags
107
+ # When sagemaker-client-config endpoint-url is passed as argument to hit beta,
108
+ # length of actual tags will be 2
109
+ assert len (actual_tags ) > 0
110
+ assert [ actual_tags [ - 1 ]] == tags
You can’t perform that action at this time.
0 commit comments