Skip to content

Commit

Permalink
test: add coverage for unknown address type for createwalletdescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoerg committed Jan 10, 2025
1 parent 2168406 commit 58c1a04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/wallet_createwalletdescriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def test_basic(self):

assert_raises_rpc_error(-5, "Unable to determine which HD key to use from active descriptors. Please specify with 'hdkey'", wallet.createwalletdescriptor, "bech32")
assert_raises_rpc_error(-5, f"Private key for {xpub} is not known", wallet.createwalletdescriptor, type="bech32", hdkey=xpub)
assert_raises_rpc_error(-5, "Unknown address type 'bech32n'", wallet.createwalletdescriptor, type="bech32n")

self.log.info("Test createwalletdescriptor after importing active descriptor to blank wallet")
# Import one active descriptor
Expand Down

0 comments on commit 58c1a04

Please sign in to comment.