@@ -77,6 +77,7 @@ def _create_model(output_path):
7777 return _create_model
7878
7979
80+ @pytest .mark .local_mode
8081@pytest .mark .skipif (PYTHON_VERSION != 'py2' , reason = "TensorFlow image supports only python 2." )
8182def test_tf_local_mode (tf_full_version , sagemaker_local_session ):
8283 with timeout (minutes = 5 ):
@@ -116,6 +117,7 @@ def test_tf_local_mode(tf_full_version, sagemaker_local_session):
116117 estimator .delete_endpoint ()
117118
118119
120+ @pytest .mark .local_mode
119121@pytest .mark .skipif (PYTHON_VERSION != 'py2' , reason = "TensorFlow image supports only python 2." )
120122def test_tf_distributed_local_mode (sagemaker_local_session ):
121123 with timeout (minutes = 5 ):
@@ -154,6 +156,7 @@ def test_tf_distributed_local_mode(sagemaker_local_session):
154156 estimator .delete_endpoint ()
155157
156158
159+ @pytest .mark .local_mode
157160@pytest .mark .skipif (PYTHON_VERSION != 'py2' , reason = "TensorFlow image supports only python 2." )
158161def test_tf_local_data (sagemaker_local_session ):
159162 with timeout (minutes = 5 ):
@@ -191,6 +194,7 @@ def test_tf_local_data(sagemaker_local_session):
191194 estimator .delete_endpoint ()
192195
193196
197+ @pytest .mark .local_mode
194198@pytest .mark .skipif (PYTHON_VERSION != 'py2' , reason = "TensorFlow image supports only python 2." )
195199def test_tf_local_data_local_script ():
196200 with timeout (minutes = 5 ):
@@ -229,6 +233,7 @@ def test_tf_local_data_local_script():
229233 estimator .delete_endpoint ()
230234
231235
236+ @pytest .mark .local_mode
232237def test_local_mode_serving_from_s3_model (sagemaker_local_session , mxnet_model , mxnet_full_version ):
233238 path = 's3://%s' % sagemaker_local_session .default_bucket ()
234239 s3_model = mxnet_model (path )
@@ -245,6 +250,7 @@ def test_local_mode_serving_from_s3_model(sagemaker_local_session, mxnet_model,
245250 predictor .delete_endpoint ()
246251
247252
253+ @pytest .mark .local_mode
248254def test_local_mode_serving_from_local_model (tmpdir , sagemaker_local_session , mxnet_model ):
249255 predictor = None
250256
@@ -261,6 +267,7 @@ def test_local_mode_serving_from_local_model(tmpdir, sagemaker_local_session, mx
261267 predictor .delete_endpoint ()
262268
263269
270+ @pytest .mark .local_mode
264271def test_mxnet_local_mode (sagemaker_local_session , mxnet_full_version ):
265272 script_path = os .path .join (DATA_DIR , 'mxnet_mnist' , 'mnist.py' )
266273 data_path = os .path .join (DATA_DIR , 'mxnet_mnist' )
@@ -286,6 +293,7 @@ def test_mxnet_local_mode(sagemaker_local_session, mxnet_full_version):
286293 mx .delete_endpoint ()
287294
288295
296+ @pytest .mark .local_mode
289297def test_mxnet_local_data_local_script (mxnet_full_version ):
290298 data_path = os .path .join (DATA_DIR , 'mxnet_mnist' )
291299 script_path = os .path .join (data_path , 'mnist.py' )
@@ -310,6 +318,7 @@ def test_mxnet_local_data_local_script(mxnet_full_version):
310318 mx .delete_endpoint ()
311319
312320
321+ @pytest .mark .local_mode
313322def test_local_transform_mxnet (sagemaker_local_session , tmpdir , mxnet_full_version ):
314323 data_path = os .path .join (DATA_DIR , 'mxnet_mnist' )
315324 script_path = os .path .join (data_path , 'mnist.py' )
0 commit comments