Skip to content

Commit

Permalink
Try and fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <jamiehalebc@gmail.com>
  • Loading branch information
jamshale committed Feb 19, 2024
1 parent c002bf5 commit 5d5beee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aries_cloudagent/multitenant/admin/tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,12 +688,13 @@ async def test_wallet_remove_managed(self):
):
self.mock_multitenant_mgr.remove_wallet = mock.CoroutineMock()

await test_module.wallet_remove(self.request)
result = await test_module.wallet_remove(self.request)

self.mock_multitenant_mgr.remove_wallet.assert_called_once_with(
"dummy", None
)
mock_response.assert_called_once_with({})
assert result == mock_response.return_value

async def test_wallet_remove_unmanaged(self):
self.request.match_info = {"wallet_id": "dummy"}
Expand All @@ -706,12 +707,13 @@ async def test_wallet_remove_unmanaged(self):
):
self.mock_multitenant_mgr.remove_wallet = mock.CoroutineMock()

await test_module.wallet_remove(self.request)
result = await test_module.wallet_remove(self.request)

self.mock_multitenant_mgr.remove_wallet.assert_called_once_with(
"dummy", "dummy_key"
)
mock_response.assert_called_once_with({})
assert result == mock_response.return_value

async def test_wallet_remove_managed_wallet_key_provided_throws(self):
self.request.match_info = {"wallet_id": "dummy"}
Expand Down

0 comments on commit 5d5beee

Please sign in to comment.