Skip to content

Commit 2807458

Browse files
committed
Rename variable in test causing code smell alert
The variable statusEntry in the function test_receive_credential_x_credential_status_ne_both_set has been renamed to status_entry in order to comply with the linting rules. Signed-off-by: Tobias Wich <tobias.wich@ecsec.de>
1 parent 9cf558e commit 2807458

1 file changed

Lines changed: 3 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,14 +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"}
773+
status_entry = {"type": "SomeRandomType"}
774774

775775
# Set credential status in both request and reference credential
776776
detail["options"]["credentialStatus"] = {"type": "CredentialStatusType"}
777-
detail["credential"]["credentialStatus"] = deepcopy(statusEntry)
777+
detail["credential"]["credentialStatus"] = deepcopy(status_entry)
778778

779779
vc = deepcopy(LD_PROOF_VC)
780-
vc["credentialStatus"] = deepcopy(statusEntry)
780+
vc["credentialStatus"] = deepcopy(status_entry)
781781

782782
cred_issue = V20CredIssue(
783783
formats=[

0 commit comments

Comments
 (0)