Skip to content

Commit 192d3cf

Browse files
author
Qian Chen
committed
test7
1 parent 81a9b0e commit 192d3cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/test_handler_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ def test_default_inference_handler_mxnet_gluon_transformer(path_exists, module_f
9898

9999
@patch('sagemaker_inference.environment.Environment')
100100
@patch('importlib.util.module_from_spec', return_value=UserModuleModelFn())
101-
def test_user_module_unsupported(module_from_spec, env):
101+
@patch('os.path.exists', return_value=True)
102+
def test_user_module_unsupported(path_exists, module_from_spec, env):
102103
env.return_value.module_name = MODULE_NAME
103104

104105
with pytest.raises(ValueError) as e:

0 commit comments

Comments
 (0)