Convert fixtures/exceptions to Pytest
This commit is contained in:
parent
6d364dc7aa
commit
cb6731f340
16 changed files with 119 additions and 170 deletions
|
|
@ -638,9 +638,7 @@ def test_put_secret_value_on_non_existing_secret():
|
|||
VersionStages=["AWSCURRENT"],
|
||||
)
|
||||
|
||||
assert \
|
||||
"Secrets Manager can't find the specified secret." == \
|
||||
cm.exception.response["Error"]["Message"]
|
||||
cm.value.response["Error"]["Message"].should.equal("Secrets Manager can't find the specified secret.")
|
||||
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -954,7 +952,7 @@ def test_tag_resource():
|
|||
|
||||
assert \
|
||||
"Secrets Manager can't find the specified secret." == \
|
||||
cm.exception.response["Error"]["Message"]
|
||||
cm.value.response["Error"]["Message"]
|
||||
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue