Skip to content
Snippets Groups Projects
Commit d19bd261 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 3243e1e7
No related branches found
No related tags found
2 merge requests!146Merge dev into master branch to complete v0.8.0 development cycle,!143#301: Generalize pubkey checksum display and check
......@@ -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 display_pubkey_and_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", display_pubkey_and_checksum(pubkey)])
table.append(["Block Identity", str(identity_timestamp)[:45] + ""])
......
......@@ -37,6 +37,7 @@ from silkaj.constants import (
SUCCESS_EXIT_STATUS,
FAILURE_EXIT_STATUS,
)
from silkaj.tui import display_pubkey_and_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", display_pubkey_and_checksum(pubkey)])
table.append(["Block Identity", str(identity_timestamp)[:45] + ""])
......
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