Skip to content

Commit 1201a43

Browse files
committed
attr check
Signed-off-by: Adam Burdett <burdettadam@gmail.com>
1 parent cb97190 commit 1201a43

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

aries_cloudagent/wallet/tests/test_in_memory_wallet.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import pytest
22
import time
33

4+
from aries_cloudagent.core.in_memory import profile
5+
46
from ...core.in_memory import InMemoryProfile
57
from ...messaging.decorators.signature_decorator import SignatureDecorator
68
from ...wallet.in_memory import InMemoryWallet
@@ -198,7 +200,7 @@ async def test_create_local_key_seeded_ed25519(self, wallet: InMemoryWallet):
198200

199201
@pytest.mark.asyncio
200202
async def test_rotate_did_keypair(self, wallet: InMemoryWallet):
201-
if wallet.profile: # check incase indysdkwallet is being used
203+
if hasattr(wallet, "profile"): # check incase indysdkwallet is being used
202204
wallet.profile.context.injector.bind_instance(DIDMethods, DIDMethods())
203205
with pytest.raises(WalletNotFoundError):
204206
await wallet.rotate_did_keypair_start(self.test_sov_did)

0 commit comments

Comments
 (0)