Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
2e12cdae
Commit
2e12cdae
authored
2 years ago
by
matograine
Committed by
Moul
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[enh] tx: Migrate from tabulate to texttable (
#203
)
parent
3380604f
No related branches found
No related tags found
1 merge request
!199
#203: Harmonize tables style using Texttable
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
silkaj/tx.py
+3
-3
3 additions, 3 deletions
silkaj/tx.py
tests/test_unit_tx.py
+1
-3
1 addition, 3 deletions
tests/test_unit_tx.py
with
4 additions
and
6 deletions
silkaj/tx.py
+
3
−
3
View file @
2e12cdae
...
...
@@ -30,7 +30,6 @@ from duniterpy.documents import (
Unlock
,
)
from
duniterpy.key
import
SigningKey
from
tabulate
import
tabulate
from
silkaj
import
auth
from
silkaj
import
blockchain_tools
as
bt
...
...
@@ -168,7 +167,8 @@ No transaction sent."
)
if
not
yes
:
confirmation_table
=
tabulate
(
table
=
tui
.
Table
()
table
.
fill_rows
(
gen_confirmation_table
(
issuer_pubkey
,
pubkey_amount
[
0
],
...
...
@@ -177,8 +177,8 @@ No transaction sent."
outputbackchange
,
comment
,
),
tablefmt
=
"
fancy_grid
"
,
)
confirmation_table
=
table
.
draw
()
if
yes
or
click
.
confirm
(
f
"
{
confirmation_table
}
\n
Do you confirm sending this transaction?
"
...
...
This diff is collapsed.
Click to expand it.
tests/test_unit_tx.py
+
1
−
3
View file @
2e12cdae
...
...
@@ -974,7 +974,7 @@ def test_send_transaction(
"""
# mocking functions
patched_gen_confirmation_table
=
Mock
(
return_value
=
None
)
patched_gen_confirmation_table
=
Mock
(
return_value
=
[
"
mock list
"
]
)
patched_handle_intermediaries_transactions
=
Mock
(
return_value
=
None
)
# patching functions
...
...
@@ -1077,8 +1077,6 @@ def construct_args(
# generate_and_send_transaction()
@pytest.mark.parametrize
(
"
key, issuers, tx_amounts, listinput_and_amount, outputAddresses, Comment, OutputbackChange
"
,
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment