From 6e483cba8d051e77f9b51c2eafc07c7230effc26 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 28 Apr 2019 23:25:18 -0300 Subject: [PATCH] tests: add confirm parameters, like the other calls --- lbrynet/testcase.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lbrynet/testcase.py b/lbrynet/testcase.py index 579f9dc69..75854015e 100644 --- a/lbrynet/testcase.py +++ b/lbrynet/testcase.py @@ -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):