Tech debt (#3653)
This commit is contained in:
parent
81859f9180
commit
737636f9df
20 changed files with 11 additions and 57 deletions
|
|
@ -45,6 +45,14 @@ def test_describe_model():
|
|||
assert model.get("ModelName").should.equal("blah")
|
||||
|
||||
|
||||
@mock_sagemaker
|
||||
def test_describe_model_not_found():
|
||||
client = boto3.client("sagemaker", region_name="us-east-1")
|
||||
with pytest.raises(ClientError) as err:
|
||||
client.describe_model(ModelName="unknown")
|
||||
assert err.value.response["Error"]["Message"].should.contain("Could not find model")
|
||||
|
||||
|
||||
@mock_sagemaker
|
||||
def test_create_model():
|
||||
client = boto3.client("sagemaker", region_name="us-east-1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue