forked from openwallet-foundation/acapy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ian Costanzo <[email protected]>
- Loading branch information
Showing
5 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
88 changes: 88 additions & 0 deletions
88
aries_cloudagent/protocols/issue_credential/v2_0/formats/vc_di/tests/test_handler.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
from copy import deepcopy | ||
from time import time | ||
import json | ||
from unittest import IsolatedAsyncioTestCase | ||
from aries_cloudagent.tests import mock | ||
from marshmallow import ValidationError | ||
|
||
from .. import handler as test_module | ||
|
||
from .......core.in_memory import InMemoryProfile | ||
from .......ledger.base import BaseLedger | ||
from .......ledger.multiple_ledger.ledger_requests_executor import ( | ||
IndyLedgerRequestsExecutor, | ||
) | ||
from .......multitenant.base import BaseMultitenantManager | ||
from .......multitenant.manager import MultitenantManager | ||
from .......cache.in_memory import InMemoryCache | ||
from .......cache.base import BaseCache | ||
from .......storage.record import StorageRecord | ||
from .......messaging.credential_definitions.util import CRED_DEF_SENT_RECORD_TYPE | ||
from .......messaging.decorators.attach_decorator import AttachDecorator | ||
from .......indy.holder import IndyHolder | ||
from ....models.cred_ex_record import V20CredExRecord | ||
from ....message_types import ( | ||
ATTACHMENT_FORMAT, | ||
CRED_20_PROPOSAL, | ||
CRED_20_OFFER, | ||
CRED_20_REQUEST, | ||
CRED_20_ISSUE, | ||
) | ||
|
||
from ...handler import V20CredFormatError | ||
|
||
from ..handler import VCDICredFormatHandler | ||
from ..handler import LOGGER as INDY_LOGGER | ||
|
||
# setup any required test data, see "formats/indy/tests/test_handler.py" | ||
# ... | ||
|
||
|
||
# IC - these are the minimal unit tests required for the new VCDI format class | ||
# they should verify that the formatter generates and receives/handles | ||
# credential offers/requests/issues with the new VCDI format | ||
# (see "formats/indy/tests/test_handler.py" for the unit tests for the | ||
# existing Indy tests, these should work basically the same way) | ||
|
||
class TestV20VCDICredFormatHandler(IsolatedAsyncioTestCase): | ||
async def asyncSetUp(self): | ||
# any required setup, see "formats/indy/tests/test_handler.py" | ||
pass | ||
|
||
async def test_validate_fields(self): | ||
# Test correct data | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
||
async def test_get_indy_detail_record(self): | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
||
async def test_check_uniqueness(self): | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
||
async def test_create_offer(self): | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
||
async def test_receive_offer(self): | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
||
async def test_create_request(self): | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
||
async def test_receive_request(self): | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
||
async def test_issue_credential_revocable(self): | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
||
async def test_issue_credential_non_revocable(self): | ||
# any required tests, see "formats/indy/tests/test_handler.py" | ||
assert False | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters