mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
script, test: fix python linter E275 errors with flake8 5.0.4
This commit is contained in:
@ -174,7 +174,7 @@ class WalletSignerTest(BitcoinTestFramework):
|
||||
mock_psbt_signed = mock_wallet.walletprocesspsbt(psbt=mock_psbt, sign=True, sighashtype="ALL", bip32derivs=True)
|
||||
mock_psbt_final = mock_wallet.finalizepsbt(mock_psbt_signed["psbt"])
|
||||
mock_tx = mock_psbt_final["hex"]
|
||||
assert(mock_wallet.testmempoolaccept([mock_tx])[0]["allowed"])
|
||||
assert mock_wallet.testmempoolaccept([mock_tx])[0]["allowed"]
|
||||
|
||||
# # Create a new wallet and populate with specific public keys, in order
|
||||
# # to work with the mock signed PSBT.
|
||||
@ -203,7 +203,7 @@ class WalletSignerTest(BitcoinTestFramework):
|
||||
# assert_equal(result[1], {'success': True})
|
||||
assert_equal(hww.getwalletinfo()["txcount"], 1)
|
||||
|
||||
assert(hww.testmempoolaccept([mock_tx])[0]["allowed"])
|
||||
assert hww.testmempoolaccept([mock_tx])[0]["allowed"]
|
||||
|
||||
with open(os.path.join(self.nodes[1].cwd, "mock_psbt"), "w", encoding="utf8") as f:
|
||||
f.write(mock_psbt_signed["psbt"])
|
||||
@ -212,13 +212,13 @@ class WalletSignerTest(BitcoinTestFramework):
|
||||
|
||||
# Don't broadcast transaction yet so the RPC returns the raw hex
|
||||
res = hww.send(outputs={dest:0.5},options={"add_to_wallet": False})
|
||||
assert(res["complete"])
|
||||
assert res["complete"]
|
||||
assert_equal(res["hex"], mock_tx)
|
||||
|
||||
self.log.info('Test sendall using hww1')
|
||||
|
||||
res = hww.sendall(recipients=[{dest:0.5}, hww.getrawchangeaddress()],options={"add_to_wallet": False})
|
||||
assert(res["complete"])
|
||||
assert res["complete"]
|
||||
assert_equal(res["hex"], mock_tx)
|
||||
# Broadcast transaction so we can bump the fee
|
||||
hww.sendrawtransaction(res["hex"])
|
||||
|
Reference in New Issue
Block a user