Skip to content
Snippets Groups Projects
Commit 00e4979c authored by matograine's avatar matograine
Browse files

[enh] #203 remove tabulate from tx.py

parent 467002a4
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
......@@ -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",
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment