Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <jamiehalebc@gmail.com>
  • Loading branch information
jamshale committed Dec 17, 2024
1 parent b01aa43 commit 38c5811
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import pytest

from .....anoncreds.holder import AnonCredsHolder
from .....anoncreds.models.cred_def_info import AnoncredsCredDefInfo
from .....anoncreds.registry import AnonCredsRegistry
from .....anoncreds.verifier import AnonCredsVerifier
from .....indy.models.pres_preview import (
IndyPresAttrSpec,
Expand Down Expand Up @@ -469,6 +471,11 @@ async def asyncSetUp(self):
)
)
injector.bind_instance(AnonCredsHolder, self.holder)
registry = mock.MagicMock(AnonCredsRegistry, autospec=True)
registry.get_cred_def_info_by_id = mock.CoroutineMock(
return_value=AnoncredsCredDefInfo(issuer_id=ISSUER_DID)
)
injector.bind_instance(AnonCredsRegistry, registry)

self.verifier = mock.MagicMock(AnonCredsVerifier, autospec=True)
self.verifier.verify_presentation = mock.CoroutineMock(return_value=("true", []))
Expand Down

0 comments on commit 38c5811

Please sign in to comment.