Pytest model of exceptions uses 'value' attribute instead of 'exception'.
This commit is contained in:
parent
2705698d83
commit
6d364dc7aa
9 changed files with 74 additions and 81 deletions
|
|
@ -608,7 +608,7 @@ def test_create_certificate_validation():
|
|||
client.register_certificate(
|
||||
certificatePem=cert["certificatePem"], setAsActive=False
|
||||
)
|
||||
e.exception.response["Error"]["Message"].should.contain(
|
||||
e.value.response["Error"]["Message"].should.contain(
|
||||
"The certificate is already provisioned or registered"
|
||||
)
|
||||
|
||||
|
|
@ -616,7 +616,7 @@ def test_create_certificate_validation():
|
|||
client.register_certificate_without_ca(
|
||||
certificatePem=cert["certificatePem"], status="ACTIVE"
|
||||
)
|
||||
e.exception.response["Error"]["Message"].should.contain(
|
||||
e.value.response["Error"]["Message"].should.contain(
|
||||
"The certificate is already provisioned or registered"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue