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/>. ...@@ -18,7 +18,6 @@ along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
from re import compile, search from re import compile, search
import math import math
from asyncio import sleep from asyncio import sleep
from tabulate import tabulate
import click import click
from silkaj import cli_tools from silkaj import cli_tools
...@@ -150,7 +149,9 @@ async def send_transaction( ...@@ -150,7 +149,9 @@ async def send_transaction(
) )
if not yes: if not yes:
confirmation_table = tabulate( table = tui.create_table()
confirmation_table = tui.vert_table(
table,
await gen_confirmation_table( await gen_confirmation_table(
issuer_pubkey, issuer_pubkey,
pubkey_amount[0], pubkey_amount[0],
...@@ -159,7 +160,6 @@ async def send_transaction( ...@@ -159,7 +160,6 @@ async def send_transaction(
outputbackchange, outputbackchange,
comment, comment,
), ),
tablefmt="fancy_grid",
) )
if yes or click.confirm( if yes or click.confirm(
......
...@@ -1048,7 +1048,7 @@ def test_send_transaction( ...@@ -1048,7 +1048,7 @@ def test_send_transaction(
return args_list return args_list
# mocking functions # 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) patched_handle_intermediaries_transactions = AsyncMock(return_value=None)
# patching functions # patching functions
...@@ -1111,8 +1111,6 @@ def test_send_transaction( ...@@ -1111,8 +1111,6 @@ def test_send_transaction(
# generate_and_send_transaction() # generate_and_send_transaction()
@pytest.mark.parametrize( @pytest.mark.parametrize(
"key, issuers, tx_amounts, listinput_and_amount, outputAddresses, Comment, OutputbackChange, client_return", "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.
Please register or to comment