Skip to content

Commit

Permalink
try one more time today to fix test
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Feb 20, 2024
1 parent e13633a commit 49fbdd4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions aries_cloudagent/multitenant/admin/tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ async def test_wallet_create_tenant_settings(self):
}
self.request.json = mock.CoroutineMock(return_value=body)

with mock.patch.object(test_module, "attempt_auto_author_with_endorser_setup"
) as mock_auto_author_attempt, mock.patch.object(test_module.web, "json_response") as mock_response:
with mock.patch.object(
test_module, "attempt_auto_author_with_endorser_setup"
) as mock_auto_author_attempt, mock.patch.object(
test_module.web, "json_response"
) as mock_response:
wallet_mock = mock.MagicMock(
serialize=mock.MagicMock(
return_value={
Expand Down Expand Up @@ -217,8 +220,11 @@ async def test_wallet_create(self):
}
self.request.json = mock.CoroutineMock(return_value=body)

with mock.patch.object(test_module, "attempt_auto_author_with_endorser_setup"
) as mock_auto_author_attempt, mock.patch.object(test_module.web, "json_response") as mock_response:
with mock.patch.object(
test_module, "attempt_auto_author_with_endorser_setup"
) as mock_auto_author_attempt, mock.patch.object(
test_module.web, "json_response"
) as mock_response:
wallet_mock = mock.MagicMock(
serialize=mock.MagicMock(
return_value={
Expand Down Expand Up @@ -677,6 +683,7 @@ async def test_wallet_create_token_x(self):
)
await test_module.wallet_create_token(self.request)

@pytest.mark.asyncio(scope="module")
async def test_wallet_remove_managed(self):
self.request.has_body = False
self.request.match_info = {"wallet_id": "dummy"}
Expand Down

0 comments on commit 49fbdd4

Please sign in to comment.