|
8 | 8 | from ...config.injection_context import InjectionContext |
9 | 9 | from ...connections.models.conn_record import ConnRecord |
10 | 10 | from ...connections.models.connection_target import ConnectionTarget |
11 | | -from ...connections.models.diddoc import ( |
12 | | - DIDDoc, |
13 | | - PublicKey, |
14 | | - PublicKeyType, |
15 | | - Service, |
16 | | -) |
| 11 | +from ...connections.models.diddoc import DIDDoc, PublicKey, PublicKeyType, Service |
17 | 12 | from ...core.event_bus import EventBus, MockEventBus |
18 | 13 | from ...core.in_memory import InMemoryProfileManager |
19 | 14 | from ...core.profile import ProfileManager |
20 | 15 | from ...core.protocol_registry import ProtocolRegistry |
| 16 | +from ...multitenant.base import BaseMultitenantManager |
| 17 | +from ...multitenant.manager import MultitenantManager |
21 | 18 | from ...protocols.coordinate_mediation.mediation_invite_store import ( |
22 | 19 | MediationInviteRecord, |
23 | 20 | ) |
|
26 | 23 | ) |
27 | 24 | from ...protocols.out_of_band.v1_0.models.oob_record import OobRecord |
28 | 25 | from ...resolver.did_resolver import DIDResolver |
29 | | -from ...multitenant.base import BaseMultitenantManager |
30 | | -from ...multitenant.manager import MultitenantManager |
31 | 26 | from ...storage.base import BaseStorage |
32 | 27 | from ...storage.error import StorageNotFoundError |
33 | 28 | from ...transport.inbound.message import InboundMessage |
|
36 | 31 | from ...transport.outbound.manager import QueuedOutboundMessage |
37 | 32 | from ...transport.outbound.message import OutboundMessage |
38 | 33 | from ...transport.outbound.status import OutboundSendStatus |
39 | | -from ...transport.wire_format import BaseWireFormat |
40 | 34 | from ...transport.pack_format import PackWireFormat |
| 35 | +from ...transport.wire_format import BaseWireFormat |
41 | 36 | from ...utils.stats import Collector |
42 | 37 | from ...version import __version__ |
43 | 38 | from ...wallet.base import BaseWallet |
44 | | -from ...wallet.key_type import KeyType |
45 | | -from ...wallet.did_method import DIDMethod |
46 | | - |
| 39 | +from ...wallet.did_method import SOV |
| 40 | +from ...wallet.key_type import ED25519 |
47 | 41 | from .. import conductor as test_module |
48 | 42 |
|
49 | 43 |
|
@@ -132,8 +126,8 @@ async def test_startup(self): |
132 | 126 |
|
133 | 127 | wallet = session.inject(BaseWallet) |
134 | 128 | await wallet.create_public_did( |
135 | | - DIDMethod.SOV, |
136 | | - KeyType.ED25519, |
| 129 | + SOV, |
| 130 | + ED25519, |
137 | 131 | ) |
138 | 132 |
|
139 | 133 | mock_inbound_mgr.return_value.setup.assert_awaited_once() |
@@ -601,8 +595,8 @@ async def test_admin(self): |
601 | 595 | session = await conductor.root_profile.session() |
602 | 596 | wallet = session.inject(BaseWallet) |
603 | 597 | await wallet.create_public_did( |
604 | | - DIDMethod.SOV, |
605 | | - KeyType.ED25519, |
| 598 | + SOV, |
| 599 | + ED25519, |
606 | 600 | ) |
607 | 601 |
|
608 | 602 | with async_mock.patch.object( |
@@ -645,8 +639,8 @@ async def test_admin_startx(self): |
645 | 639 | session = await conductor.root_profile.session() |
646 | 640 | wallet = session.inject(BaseWallet) |
647 | 641 | await wallet.create_public_did( |
648 | | - DIDMethod.SOV, |
649 | | - KeyType.ED25519, |
| 642 | + SOV, |
| 643 | + ED25519, |
650 | 644 | ) |
651 | 645 |
|
652 | 646 | with async_mock.patch.object( |
@@ -717,8 +711,8 @@ async def test_start_static(self): |
717 | 711 | session = await conductor.root_profile.session() |
718 | 712 | wallet = session.inject(BaseWallet) |
719 | 713 | await wallet.create_public_did( |
720 | | - DIDMethod.SOV, |
721 | | - KeyType.ED25519, |
| 714 | + SOV, |
| 715 | + ED25519, |
722 | 716 | ) |
723 | 717 |
|
724 | 718 | mock_mgr.return_value.create_static_connection = async_mock.AsyncMock() |
@@ -887,8 +881,8 @@ async def test_print_invite_connection(self): |
887 | 881 | session = await conductor.root_profile.session() |
888 | 882 | wallet = session.inject(BaseWallet) |
889 | 883 | await wallet.create_public_did( |
890 | | - DIDMethod.SOV, |
891 | | - KeyType.ED25519, |
| 884 | + SOV, |
| 885 | + ED25519, |
892 | 886 | ) |
893 | 887 |
|
894 | 888 | await conductor.start() |
@@ -1401,8 +1395,8 @@ async def test_startup_x_version_mismatch(self): |
1401 | 1395 |
|
1402 | 1396 | wallet = session.inject(BaseWallet) |
1403 | 1397 | await wallet.create_public_did( |
1404 | | - DIDMethod.SOV, |
1405 | | - KeyType.ED25519, |
| 1398 | + SOV, |
| 1399 | + ED25519, |
1406 | 1400 | ) |
1407 | 1401 |
|
1408 | 1402 | mock_inbound_mgr.return_value.setup.assert_awaited_once() |
@@ -1438,8 +1432,8 @@ async def test_startup_x_no_storage_version(self): |
1438 | 1432 |
|
1439 | 1433 | wallet = session.inject(BaseWallet) |
1440 | 1434 | await wallet.create_public_did( |
1441 | | - DIDMethod.SOV, |
1442 | | - KeyType.ED25519, |
| 1435 | + SOV, |
| 1436 | + ED25519, |
1443 | 1437 | ) |
1444 | 1438 |
|
1445 | 1439 | mock_inbound_mgr.return_value.setup.assert_awaited_once() |
|
0 commit comments