tests: add confirm parameters, like the other calls

This commit is contained in:
Victor Shyba 2019-04-28 23:25:18 -03:00 committed by Lex Berezhny
parent 46c03c0cb2
commit 6e483cba8d

View file

@ -151,14 +151,16 @@ class CommandTestCase(IntegrationTestCase):
await self.blockchain.generate(blocks)
await self.ledger.on_header.where(self.blockchain.is_expected_block)
async def blockchain_claim_name(self, name: str, value: str, amount: str):
async def blockchain_claim_name(self, name: str, value: str, amount: str, confirm=True):
txid = await self.blockchain._cli_cmnd('claimname', name, value, amount)
await self.generate(1)
if confirm:
await self.generate(1)
return txid
async def blockchain_update_name(self, txid: str, value: str, amount: str):
async def blockchain_update_name(self, txid: str, value: str, amount: str, confirm=True):
txid = await self.blockchain._cli_cmnd('updateclaim', txid, value, amount)
await self.generate(1)
if confirm:
await self.generate(1)
return txid
async def out(self, awaitable):