Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Nov 6, 2024
1 parent aadae16 commit 35542cd
Show file tree
Hide file tree
Showing 9 changed files with 374 additions and 280 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
)
from base58 import alphabet

from ......scenarios.examples.anoncreds_issuance_and_revocation.example import (
SchemaResult,
)
from .....anoncreds.base import AnonCredsSchemaAlreadyExists
from .....anoncreds.default.legacy_indy import registry as test_module
from .....anoncreds.issuer import AnonCredsIssuer
Expand Down Expand Up @@ -53,7 +50,7 @@
RevRegDefState,
RevRegDefValue,
)
from ....models.schema import AnonCredsSchema, GetSchemaResult
from ....models.schema import AnonCredsSchema, GetSchemaResult, SchemaResult

B58 = alphabet if isinstance(alphabet, str) else alphabet.decode("ascii")
INDY_DID = rf"^(did:sov:)?[{B58}]{{21,22}}$"
Expand Down
4 changes: 2 additions & 2 deletions acapy_agent/indy/models/cred_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
self.xr_cap = xr_cap


class AnoncredsCorrectnessProofSchema(BaseModelSchema):
class IndyKeyCorrectnessProofSchema(BaseModelSchema):
"""Indy key correctness proof schema."""

class Meta:
Expand Down Expand Up @@ -149,7 +149,7 @@ class Meta:
},
)
key_correctness_proof = fields.Nested(
AnoncredsCorrectnessProofSchema(),
IndyKeyCorrectnessProofSchema(),
required=True,
metadata={"description": "Key correctness proof"},
)
Loading

0 comments on commit 35542cd

Please sign in to comment.