Skip to content

Commit

Permalink
chore: drop redundant test
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Apr 16, 2024
1 parent 1e601b1 commit a9b84f2
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions aries_cloudagent/tails/tests/test_indy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,6 @@ async def test_upload(self):
text == context.settings["tails_server_upload_url"] + "/" + REV_REG_ID
)

async def test_upload_indy_sdk(self):
profile = InMemoryProfile.test_profile()
profile.settings["tails_server_upload_url"] = "http://1.2.3.4:8088"
profile.context.injector.bind_instance(
BaseMultipleLedgerManager,
mock.MagicMock(
get_write_ledgers=mock.CoroutineMock(
return_value=[
"test_ledger_id_1",
"test_ledger_id_2",
]
)
),
)
profile.context.injector.bind_instance(BaseLedger, mock.MagicMock())
indy_tails = test_module.IndyTailsServer()

with mock.patch.object(
test_module, "put_file", mock.CoroutineMock()
) as mock_put:
mock_put.return_value = "tails-hash"
(ok, text) = await indy_tails.upload_tails_file(
profile.context,
REV_REG_ID,
"/tmp/dummy/path",
)
assert ok
assert (
text == profile.settings["tails_server_upload_url"] + "/" + REV_REG_ID
)

async def test_upload_indy_vdr(self):
profile = InMemoryProfile.test_profile()
profile.settings["tails_server_upload_url"] = "http://1.2.3.4:8088"
Expand Down

0 comments on commit a9b84f2

Please sign in to comment.