mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-27 06:19:09 +01:00
wallet: Make RPC help compile-time static
This commit is contained in:
@@ -18,6 +18,8 @@ class HelpRpcTest(BitcoinTestFramework):
|
||||
def run_test(self):
|
||||
self.test_categories()
|
||||
self.dump_help()
|
||||
if self.is_wallet_compiled():
|
||||
self.wallet_help()
|
||||
|
||||
def test_categories(self):
|
||||
node = self.nodes[0]
|
||||
@@ -53,6 +55,11 @@ class HelpRpcTest(BitcoinTestFramework):
|
||||
# Make sure the node can generate the help at runtime without crashing
|
||||
f.write(self.nodes[0].help(call))
|
||||
|
||||
def wallet_help(self):
|
||||
assert 'getnewaddress ( "label" "address_type" )' in self.nodes[0].help('getnewaddress')
|
||||
self.restart_node(0, extra_args=['-nowallet=1'])
|
||||
assert 'getnewaddress ( "label" "address_type" )' in self.nodes[0].help('getnewaddress')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
HelpRpcTest().main()
|
||||
|
||||
Reference in New Issue
Block a user