@@ -199,11 +199,11 @@ def test_invalid_inputs_required_fields_passed_as_none(self):
199199 in str (context .exception )
200200 )
201201 self .assertTrue (
202- "The required input notebook(None) is not a valid file." in str (context .exception )
202+ "The required input notebook (None) is not a valid file." in str (context .exception )
203203 )
204204 self .assertTrue (
205- "The image uri(specified as None) is required and should be hosted in "
206- "same region of the session(us-west-2)." in str (context .exception )
205+ "The image uri (specified as None) is required and should be hosted in "
206+ "same region of the session (us-west-2)." in str (context .exception )
207207 )
208208 self .assertTrue ("The kernel name is required." in str (context .exception ))
209209
@@ -222,19 +222,19 @@ def test_invalid_paths_to_upload(self):
222222 ).arguments
223223
224224 self .assertTrue (
225- "The required input notebook(path/non-existing-file) is not a valid file."
225+ "The required input notebook (path/non-existing-file) is not a valid file."
226226 in str (context .exception )
227227 )
228228 self .assertTrue (
229- "The initialization script(path/ non-existing-file ) is not a valid file."
229+ "The initialization script ( non-existing-script ) is not a valid file."
230230 in str (context .exception )
231231 )
232232 self .assertTrue (
233- "The path(/tmp/non-existing-folder) specified in additional dependencies "
233+ "The path (/tmp/non-existing-folder) specified in additional dependencies "
234234 "does not exist." in str (context .exception )
235235 )
236236 self .assertTrue (
237- "The path(path2/non-existing-file) specified in additional dependencies "
237+ "The path (path2/non-existing-file) specified in additional dependencies "
238238 "does not exist." in str (context .exception )
239239 )
240240
@@ -251,9 +251,9 @@ def test_image_uri_is_not_in_the_expected_region(self):
251251 ).arguments
252252
253253 self .assertTrue (
254- "The image uri(specified as 236514542706.dkr.ecr.us-east-9.amazonaws.com/"
254+ "The image uri (specified as 236514542706.dkr.ecr.us-east-9.amazonaws.com/"
255255 "sagemaker-data-science) is required and should be hosted in "
256- "same region of the session(us-west-2)." in str (context .exception )
256+ "same region of the session (us-west-2)." in str (context .exception )
257257 )
258258
259259 def test_invalid_notebook_job_name (self ):
0 commit comments