Skip to content

Commit

Permalink
Fix storage type and config mismatch test
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed Apr 29, 2024
1 parent 32c4f62 commit 763654b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions aries_cloudagent/core/tests/test_conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ async def test_startup_storage_type_exists_and_matches(self):

await conductor.stop()

async def test_startup_storage_type_exists_and_does_not_match(self):
async def test_startup_storage_type_anoncreds_and_config_askar_re_calls_setup(self):
builder: ContextBuilder = StubContextBuilder(self.test_settings)
conductor = test_module.Conductor(builder)

Expand All @@ -1832,6 +1832,8 @@ async def test_startup_storage_type_exists_and_does_not_match(self):
) as mock_outbound_mgr, mock.patch.object(
test_module, "LoggingConfigurator", autospec=True
) as mock_logger, mock.patch.object(
test_module, "upgrade_wallet_to_anoncreds_if_requested", return_value=False
) as mock_upgrade, mock.patch.object(
BaseStorage,
"find_record",
mock.CoroutineMock(
Expand Down Expand Up @@ -1866,9 +1868,9 @@ async def test_startup_storage_type_exists_and_does_not_match(self):

mock_inbound_mgr.return_value.registered_transports = {}
mock_outbound_mgr.return_value.registered_transports = {}

with self.assertRaises(test_module.StartupError):
with mock.patch.object(test_module.Conductor, "setup") as mock_setup:
await conductor.start()
assert mock_setup.called

await conductor.stop()

Expand Down

0 comments on commit 763654b

Please sign in to comment.