Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: make ldp_vc logic reusable #2533

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style: formatting fixes after rebase
Signed-off-by: Daniel Bluhm <[email protected]>
  • Loading branch information
dbluhm committed Dec 7, 2023
commit ccb2454f863595adee6709f6129354fa00c2aa4d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
SECURITY_CONTEXT_BBS_URL,
SECURITY_CONTEXT_ED25519_2020_URL,
)
from .......vc.ld_proofs.error import LinkedDataProofException
from .......vc.tests.document_loader import custom_document_loader
from .......vc.vc_ld.manager import VcLdpManager
from .......vc.vc_ld.models.credential import VerifiableCredential
Expand Down Expand Up @@ -844,9 +843,7 @@ async def test_store_credential(self):
with mock.patch.object(
VcLdpManager,
"verify_credential",
mock.CoroutineMock(
return_value=DocumentVerificationResult(verified=True)
),
mock.CoroutineMock(return_value=DocumentVerificationResult(verified=True)),
) as mock_verify_credential:
await self.handler.store_credential(cred_ex_record, cred_id)

Expand Down Expand Up @@ -895,9 +892,7 @@ async def test_store_credential_x_not_verified(self):
) as mock_get_suite, mock.patch.object(
VcLdpManager,
"verify_credential",
mock.CoroutineMock(
return_value=DocumentVerificationResult(verified=False)
),
mock.CoroutineMock(return_value=DocumentVerificationResult(verified=False)),
) as mock_verify_credential, mock.patch.object(
VcLdpManager,
"_get_proof_purpose",
Expand Down