diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-11 10:23:26 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-11 12:38:36 -0400 |
commit | fad889cbf0b6c46da2e110b73cbea55e4ff7951e (patch) | |
tree | d34d78a7431636291c09f8d9806adce172f6f531 /test/functional/rpc_help.py | |
parent | 7a24cca82906e4ee1e082c8f4563fb873170532c (diff) |
wallet: Make RPC help compile-time static
Diffstat (limited to 'test/functional/rpc_help.py')
-rwxr-xr-x | test/functional/rpc_help.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/rpc_help.py b/test/functional/rpc_help.py index 027ae368e7..9b981b864e 100755 --- a/test/functional/rpc_help.py +++ b/test/functional/rpc_help.py @@ -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() |