Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Feb 23, 2024
1 parent 3739c3a commit 7644f2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aries_cloudagent/anoncreds/tests/test_revocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,13 +598,13 @@ async def test_finish_revocation_list(self, mock_finish, mock_handle):
await self.revocation.finish_revocation_list(
job_id="test-job-id",
rev_reg_def_id="test-rev-reg-def-id",
revoked=[]
)
assert mock_finish.called

# Fetch finds list then there's nothing to do, it's already finished and updated
await self.revocation.finish_revocation_list(
job_id="test-job-id",
rev_reg_def_id="test-rev-reg-def-id",
job_id="test-job-id", rev_reg_def_id="test-rev-reg-def-id", revoked=[]
)
assert mock_finish.call_count == 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ async def test_endorsed_txn_post_processing_anoncreds(
"txn": {
"type": "114",
"metadata": {"from": TEST_DID},
"data": {"revocRegDefId": REV_REG_ID},
"data": {"revocRegDefId": REV_REG_ID, "value": {"revoked": [1]}},
},
"txnMetadata": {"txnId": REV_REG_ID},
},
Expand Down

0 comments on commit 7644f2d

Please sign in to comment.