test: rename .rpc to ._rpc and remove unnecessary uses

It is usually not necessary, and makes it impossible to use --usecli
This commit is contained in:
Martin Zumsande
2025-04-15 15:48:26 -04:00
parent 5b08885986
commit 8f8ce9e174
7 changed files with 20 additions and 20 deletions

View File

@@ -19,7 +19,7 @@ class DeprecatedRpcTest(BitcoinTestFramework):
# such RPCs are fully removed. For example:
#
# self.log.info("Test generate RPC")
# assert_raises_rpc_error(-32, 'The wallet generate rpc method is deprecated', self.nodes[0].rpc.generate, 1)
# assert_raises_rpc_error(-32, 'The wallet generate rpc method is deprecated', self.nodes[0].generate, 1)
#
# Please ensure that for all the RPC methods tested here, there is
# at least one other functional test that still tests the RPCs
@@ -32,7 +32,7 @@ class DeprecatedRpcTest(BitcoinTestFramework):
self.log.info("Tests for deprecated wallet-related RPC methods (if any)")
self.log.info("Test settxfee RPC deprecation")
self.nodes[0].createwallet("settxfeerpc")
assert_raises_rpc_error(-32, 'settxfee is deprecated and will be fully removed in v31.0.', self.nodes[0].rpc.settxfee, 0.01)
assert_raises_rpc_error(-32, 'settxfee is deprecated and will be fully removed in v31.0.', self.nodes[0].settxfee, 0.01)
if __name__ == '__main__':
DeprecatedRpcTest(__file__).main()