mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-08-16 22:30:52 +03:00
parent
b6a9c1d6d6
commit
c1c0e30237
@ -109,7 +109,6 @@ tests.wallet.did_wallet.test_did
|
||||
tests.wallet.rpc.test_wallet_rpc
|
||||
tests.wallet.simple_sync.test_simple_sync_protocol
|
||||
tests.wallet.sync.test_wallet_sync
|
||||
tests.wallet.test_bech32m
|
||||
tests.wallet.test_chialisp
|
||||
tests.wallet.test_puzzle_store
|
||||
tests.wallet.test_singleton
|
||||
|
@ -6,7 +6,7 @@ from __future__ import annotations
|
||||
from chia.util.bech32m import bech32_decode
|
||||
|
||||
|
||||
def test_valid_imports():
|
||||
def test_valid_imports() -> None:
|
||||
test_strings = [
|
||||
"A1LQFN3A",
|
||||
"a1lqfn3a",
|
||||
@ -18,11 +18,11 @@ def test_valid_imports():
|
||||
"?1v759aa",
|
||||
]
|
||||
for test_str in test_strings:
|
||||
hrp, data = bech32_decode(test_str)
|
||||
_, data = bech32_decode(test_str)
|
||||
assert data is not None
|
||||
|
||||
|
||||
def test_invalid_imports():
|
||||
def test_invalid_imports() -> None:
|
||||
test_strings = [
|
||||
f"{0x20}1xj0phk",
|
||||
f"{0x7F}1g6xzxy",
|
||||
@ -41,5 +41,5 @@ def test_invalid_imports():
|
||||
"1p2gdwpf",
|
||||
]
|
||||
for test_str in test_strings:
|
||||
hrp, data = bech32_decode(test_str)
|
||||
_, data = bech32_decode(test_str)
|
||||
assert data is None
|
||||
|
Loading…
Reference in New Issue
Block a user