File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,15 @@ def test_predictor_classify_bad_content_type():
190
190
predictor .classify (CLASSIFY_INPUT )
191
191
192
192
193
- def assert_invoked (sagemaker_session , ** args ):
194
- sagemaker_session .sagemaker_runtime_client .invoke_endpoint .assert_called_once_with (** args )
193
+ def assert_invoked (sagemaker_session , ** kwargs ):
194
+ call = sagemaker_session .sagemaker_runtime_client .invoke_endpoint .call_args
195
+ cargs , ckwargs = call
196
+ assert not cargs
197
+ assert len (kwargs ) == len (ckwargs )
198
+ for k in ckwargs :
199
+ assert kwargs [k ] == ckwargs [k ]
200
+
201
+ # sagemaker_session.sagemaker_runtime_client.invoke_endpoint.assert_called_once_with(**kwargs)
195
202
196
203
197
204
def mock_response (expected_response , sagemaker_session , content_type = JSON_CONTENT_TYPE ):
You can’t perform that action at this time.
0 commit comments