Merge pull request #1636 from XRPLF/fix_airgapped_wallet

Fix airgapped wallet tests
This commit is contained in:
Rome Reginelli
2022-12-13 17:39:15 -08:00
committed by GitHub
2 changed files with 4 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ def create_wallet_directory():
if not os.path.exists(File): if not os.path.exists(File):
print("1. Generating wallet's keypair...") print("1. Generating wallet's keypair...")
pub, priv, seed = create_wallet(silent=True) pub, seed = create_wallet(silent=True)
print("2. Creating wallet's file directory...") print("2. Creating wallet's file directory...")
os.makedirs(File) os.makedirs(File)
@@ -181,7 +181,7 @@ def showcase_wallet_address_qr_code():
__path = get_path("/WalletTEST/public.png") __path = get_path("/WalletTEST/public.png")
print(f"1. Getting address from {__path}...") print(f"1. Getting address from {__path}...")
print("2. Displaying QR code on the screen...") print("2. Displaying QR code on the screen...")
image = Image.open(get_path("/Wallet/public.png")) image = Image.open(get_path("/WalletTEST/public.png"))
image.show() image.show()
@@ -189,10 +189,9 @@ if __name__ == '__main__':
print("Airgapped Machine Unit Test (5 functions):\n") print("Airgapped Machine Unit Test (5 functions):\n")
print(f"UNIT TEST 1. create_wallet():") print(f"UNIT TEST 1. create_wallet():")
_address, _private, _seed = create_wallet(silent=False) _address, _seed = create_wallet(silent=False)
print(f"-- RESULTS --\n" print(f"-- RESULTS --\n"
f"Address: {_address}\n" f"Address: {_address}\n"
f"Private Key: {_private}\n"
f"Seed: {_seed}\n" f"Seed: {_seed}\n"
f"END RESULT: Successful" f"END RESULT: Successful"
) )

View File

@@ -20,7 +20,7 @@ qrcode==7.2
rfc3986==1.5.0 rfc3986==1.5.0
six==1.16.0 six==1.16.0
sniffio==1.2.0 sniffio==1.2.0
sqlparse==0.4.1 sqlparse==0.4.2
typing-extensions==3.10.0.0 typing-extensions==3.10.0.0
websockets==9.1 websockets==9.1
xrpl-py==1.1.1 xrpl-py==1.1.1