Skip to content

Commit

Permalink
Adapt unit test for new errors
Browse files Browse the repository at this point in the history
  • Loading branch information
doerfli committed Aug 12, 2022
1 parent 4dab3c6 commit 6d514c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_deploy_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_PolicyDefaultFlow(instance: GifInstance, owner):
assert policyDefaultFlow.address == policyDefaultFlowAddress
assert policyDefaultFlow.address != 0x0

with brownie.reverts('ERROR:POC-050:METADATA_DOES_NOT_EXIST'):
with brownie.reverts('ERROR:POC-051:APPLICATION_DOES_NOT_EXIST'):
policyDefaultFlow.getApplicationData(s2b32(''))

with pytest.raises(AttributeError):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_process_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def test_process_apply_underwrite_expire_close(
with brownie.reverts('ERROR:POC-019:APPLICATION_STATE_INVALID'):
product.decline(processId, {'from': productOwner})

with brownie.reverts('ERROR:PFD-001:POLICY_NOT_EXPIRED'):
with brownie.reverts('ERROR:PFD-002:POLICY_NOT_EXPIRED'):
product.close(processId, {'from': productOwner})

product.expire(processId, {'from': productOwner})
Expand Down

0 comments on commit 6d514c1

Please sign in to comment.