From ca1e9a5167d8e2cce5840e67d8b02191490852c1 Mon Sep 17 00:00:00 2001 From: PatStLouis Date: Sat, 28 Sep 2024 18:21:11 +0000 Subject: [PATCH] fix multikey tests Signed-off-by: PatStLouis --- .../wallet/keys/tests/test_key_operations.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/aries_cloudagent/wallet/keys/tests/test_key_operations.py b/aries_cloudagent/wallet/keys/tests/test_key_operations.py index f38319a065..8704ad3716 100644 --- a/aries_cloudagent/wallet/keys/tests/test_key_operations.py +++ b/aries_cloudagent/wallet/keys/tests/test_key_operations.py @@ -1,7 +1,7 @@ """Test MultikeypManager.""" from unittest import IsolatedAsyncioTestCase -from aries_cloudagent.wallet.keys.manager import MultikeyManager +from aries_cloudagent.wallet.keys.manager import MultikeyManager, multikey_to_verkey, verkey_to_multikey from aries_cloudagent.core.in_memory import InMemoryProfile @@ -34,13 +34,6 @@ async def test_key_creation(self): assert key_info["multikey"] == self.multikey assert key_info["kid"] == self.kid - async def test_key_representations(self): - async with self.profile.session() as session: - assert ( - MultikeyManager(session=session)._multikey_to_verkey(self.multikey) - == self.verkey - ) - assert ( - MultikeyManager(session=session)._verkey_to_multikey(self.verkey) - == self.multikey - ) + async def test_key_transformations(self): + assert multikey_to_verkey(self.multikey) == self.verkey + assert verkey_to_multikey(self.verkey) == self.multikey