diff --git a/silkaj/tx.py b/silkaj/tx.py index 1dae94a27098b3d61c1066e1eaf64fcd0cb50e7a..d29ba3cb99adf2d37de672e77afd706fcec31138 100644 --- a/silkaj/tx.py +++ b/silkaj/tx.py @@ -18,7 +18,6 @@ along with Silkaj. If not, see <https://www.gnu.org/licenses/>. from re import compile, search import math from asyncio import sleep -from tabulate import tabulate import click from silkaj import cli_tools @@ -150,7 +149,9 @@ async def send_transaction( ) if not yes: - confirmation_table = tabulate( + table = tui.create_table() + confirmation_table = tui.vert_table( + table, await gen_confirmation_table( issuer_pubkey, pubkey_amount[0], @@ -159,7 +160,6 @@ async def send_transaction( outputbackchange, comment, ), - tablefmt="fancy_grid", ) if yes or click.confirm( diff --git a/tests/test_unit_tx.py b/tests/test_unit_tx.py index 62fc092c722e053c2e2b974be884759d036a73fe..8f4c6188787a508a7e1e6b8cb7fd1ddeff1a9e29 100644 --- a/tests/test_unit_tx.py +++ b/tests/test_unit_tx.py @@ -1048,7 +1048,7 @@ def test_send_transaction( return args_list # mocking functions - patched_gen_confirmation_table = AsyncMock(return_value=None) + patched_gen_confirmation_table = AsyncMock(return_value=["mock list"]) patched_handle_intermediaries_transactions = AsyncMock(return_value=None) # patching functions @@ -1111,8 +1111,6 @@ def test_send_transaction( # generate_and_send_transaction() - - @pytest.mark.parametrize( "key, issuers, tx_amounts, listinput_and_amount, outputAddresses, Comment, OutputbackChange, client_return", [