Skip to content

Commit 9cf558e

Browse files
committed
Adapt test to changed handling of credentialStatus values
Signed-off-by: Tobias Wich <tobias.wich@ecsec.de>
1 parent 0542fa0 commit 9cf558e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • aries_cloudagent/protocols/issue_credential/v2_0/formats/ld_proof/tests

aries_cloudagent/protocols/issue_credential/v2_0/formats/ld_proof/tests/test_handler.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,13 +770,14 @@ async def test_receive_credential_x_credential_status_ne(self):
770770

771771
async def test_receive_credential_x_credential_status_ne_both_set(self):
772772
detail = deepcopy(LD_PROOF_VC_DETAIL)
773+
statusEntry = {"type": "SomeRandomType"}
773774

774-
# Set credential status so it's only set on the detail
775-
# not the issued credential
775+
# Set credential status in both request and reference credential
776776
detail["options"]["credentialStatus"] = {"type": "CredentialStatusType"}
777+
detail["credential"]["credentialStatus"] = deepcopy(statusEntry)
777778

778779
vc = deepcopy(LD_PROOF_VC)
779-
vc["credentialStatus"] = {"type": "SomeRandomType"}
780+
vc["credentialStatus"] = deepcopy(statusEntry)
780781

781782
cred_issue = V20CredIssue(
782783
formats=[

0 commit comments

Comments
 (0)