ArgsManager: automate checking for correct command options

This commit is contained in:
Anthony Towns
2023-11-06 18:58:01 +10:00
parent 186354a0d8
commit 33c8090be9
4 changed files with 51 additions and 3 deletions

View File

@@ -421,6 +421,7 @@ class ToolWalletTest(BitcoinTestFramework):
assert not (self.nodes[0].wallets_path / "legacy").exists()
self.assert_raises_tool_error("Invalid parameter -descriptors", "-wallet=legacy", "-descriptors=false", "create")
assert not (self.nodes[0].wallets_path / "legacy").exists()
self.assert_raises_tool_error("The -dumpfile option cannot be used with the 'create' command.", "-wallet=legacy", "-dumpfile=wallet.dump", "create")
def test_no_create_unnamed(self):
self.log.info("Test that unnamed (default) wallets cannot be created")