Skip to content
Snippets Groups Projects
Commit 1e45b19f authored by matograine's avatar matograine
Browse files

[enh] #301 : make `membership` command display <pubkey:checksum> format

change the tests to match the new behavior
parent 163d5134
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ from silkaj.network_tools import ClientInstance
from silkaj.blockchain_tools import BlockchainParams, HeadBlock
from silkaj.license import license_approval
from silkaj.constants import SUCCESS_EXIT_STATUS
from silkaj.tui import pubkey_with_checksum
@click.command(
......@@ -136,7 +137,7 @@ async def display_confirmation_table(identity_uid, pubkey, identity_timestamp):
table.append(["Pending membership documents will expire", expiration])
table.append(["User Identifier (UID)", identity_uid])
table.append(["Public Key", pubkey])
table.append(["Public Key", pubkey_with_checksum(pubkey)])
table.append(["Block Identity", identity_timestamp])
......
......@@ -37,6 +37,7 @@ from silkaj.constants import (
SUCCESS_EXIT_STATUS,
FAILURE_EXIT_STATUS,
)
from silkaj.tui import pubkey_with_checksum
# AsyncMock available from Python 3.8. asynctest is used for Py < 3.8
if sys.version_info[1] > 7:
......@@ -213,7 +214,7 @@ async def test_display_confirmation_table(
table.append(["Pending membership documents will expire", expiration])
table.append(["User Identifier (UID)", identity_uid])
table.append(["Public Key", pubkey])
table.append(["Public Key", pubkey_with_checksum(pubkey)])
table.append(["Block Identity", identity_timestamp])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment