@@ -141,6 +141,10 @@ def register_model_and_make_inference_request(expect_model_load_failure=False):
141
141
resp .raise_for_status ()
142
142
143
143
144
+ @pytest .mark .skipif (
145
+ os .environ .get ("TS_RUN_IN_DOCKER" , False ),
146
+ reason = "Test to be run outside docker" ,
147
+ )
144
148
def test_install_dependencies_to_target_directory_with_requirements ():
145
149
# Torchserve cleanup
146
150
test_utils .stop_torchserve ()
@@ -167,6 +171,10 @@ def test_install_dependencies_to_target_directory_with_requirements():
167
171
test_utils .delete_all_snapshots ()
168
172
169
173
174
+ @pytest .mark .skipif (
175
+ os .environ .get ("TS_RUN_IN_DOCKER" , False ),
176
+ reason = "Test to be run outside docker" ,
177
+ )
170
178
def test_install_dependencies_to_target_directory_without_requirements ():
171
179
# Torchserve cleanup
172
180
test_utils .stop_torchserve ()
@@ -193,6 +201,10 @@ def test_install_dependencies_to_target_directory_without_requirements():
193
201
test_utils .delete_all_snapshots ()
194
202
195
203
204
+ @pytest .mark .skipif (
205
+ os .environ .get ("TS_RUN_IN_DOCKER" , False ),
206
+ reason = "Test to be run outside docker" ,
207
+ )
196
208
def test_disable_install_dependencies_to_target_directory_with_requirements ():
197
209
# Torchserve cleanup
198
210
test_utils .stop_torchserve ()
@@ -212,6 +224,10 @@ def test_disable_install_dependencies_to_target_directory_with_requirements():
212
224
test_utils .delete_all_snapshots ()
213
225
214
226
227
+ @pytest .mark .skipif (
228
+ os .environ .get ("TS_RUN_IN_DOCKER" , False ),
229
+ reason = "Test to be run outside docker" ,
230
+ )
215
231
def test_disable_install_dependencies_to_target_directory_without_requirements ():
216
232
# Torchserve cleanup
217
233
test_utils .stop_torchserve ()
@@ -261,6 +277,10 @@ def test_install_dependencies_to_venv_with_requirements():
261
277
test_utils .delete_all_snapshots ()
262
278
263
279
280
+ @pytest .mark .skipif (
281
+ os .environ .get ("TS_RUN_IN_DOCKER" , False ),
282
+ reason = "Test to be run outside docker" ,
283
+ )
264
284
def test_install_dependencies_to_venv_without_requirements ():
265
285
# Torchserve cleanup
266
286
test_utils .stop_torchserve ()
@@ -287,6 +307,10 @@ def test_install_dependencies_to_venv_without_requirements():
287
307
test_utils .delete_all_snapshots ()
288
308
289
309
310
+ @pytest .mark .skipif (
311
+ os .environ .get ("TS_RUN_IN_DOCKER" , False ),
312
+ reason = "Test to be run outside docker" ,
313
+ )
290
314
def test_disable_install_dependencies_to_venv_with_requirements ():
291
315
# Torchserve cleanup
292
316
test_utils .stop_torchserve ()
@@ -306,6 +330,10 @@ def test_disable_install_dependencies_to_venv_with_requirements():
306
330
test_utils .delete_all_snapshots ()
307
331
308
332
333
+ @pytest .mark .skipif (
334
+ os .environ .get ("TS_RUN_IN_DOCKER" , False ),
335
+ reason = "Test to be run outside docker" ,
336
+ )
309
337
def test_disable_install_dependencies_to_venv_without_requirements ():
310
338
# Torchserve cleanup
311
339
test_utils .stop_torchserve ()
0 commit comments