diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-11-10 12:04:07 -0500 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2023-05-03 11:27:51 -0500 |
commit | 95d7de0964620a3f7386a4adc5707559868abf84 (patch) | |
tree | d995e6ea2755fa782b40c72a3974f3d2eb58cb5e /test/functional/wallet_watchonly.py | |
parent | 96233146dd31c1d99fd1619be4449944623ef750 (diff) | |
download | bitcoin-95d7de0964620a3f7386a4adc5707559868abf84.tar.xz |
test: Update python tests to use named parameters instead of options objects
Diffstat (limited to 'test/functional/wallet_watchonly.py')
-rwxr-xr-x | test/functional/wallet_watchonly.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wallet_watchonly.py b/test/functional/wallet_watchonly.py index dd4514318c..b473f5d65c 100755 --- a/test/functional/wallet_watchonly.py +++ b/test/functional/wallet_watchonly.py @@ -98,13 +98,13 @@ class CreateWalletWatchonlyTest(BitcoinTestFramework): options = {'changeAddress': wo_change} no_wo_options = {'changeAddress': wo_change, 'includeWatching': False} - result = wo_wallet.walletcreatefundedpsbt(inputs=inputs, outputs=outputs, options=options) + result = wo_wallet.walletcreatefundedpsbt(inputs=inputs, outputs=outputs, **options) assert_equal("psbt" in result, True) assert_raises_rpc_error(-4, "Insufficient funds", wo_wallet.walletcreatefundedpsbt, inputs, outputs, 0, no_wo_options) self.log.info('Testing fundrawtransaction watch-only defaults') rawtx = wo_wallet.createrawtransaction(inputs=inputs, outputs=outputs) - result = wo_wallet.fundrawtransaction(hexstring=rawtx, options=options) + result = wo_wallet.fundrawtransaction(hexstring=rawtx, **options) assert_equal("hex" in result, True) assert_raises_rpc_error(-4, "Insufficient funds", wo_wallet.fundrawtransaction, rawtx, no_wo_options) |