Skip to content

Commit 0f8b749

Browse files
author
Qian Chen
committed
test9
1 parent fef7e23 commit 0f8b749

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/unit/test_handler_service.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,13 @@ def test_user_module_unsupported(path_exists, module_from_spec, env):
108108
module_from_spec.assert_called_once()
109109
e.match('Unsupported model type')
110110

111+
111112
@patch('sagemaker_inference.environment.Environment')
112113
@patch('importlib.util.module_from_spec', return_value=UserModuleModelFn())
113-
def test_user_module_unsupported(module_from_spec, env):
114+
def test_user_module_invalid_path(module_from_spec, env):
114115
env.return_value.module_name = MODULE_NAME
115116

116117
with pytest.raises(ValueError) as e:
117118
HandlerService._user_module_transformer()
118119

119-
e.match('Invalid inference_script path')
120+
e.match('Invalid inference_script path')

0 commit comments

Comments
 (0)