port orchstr8 fix to our test case as its lbrynet specific

This commit is contained in:
Victor Shyba 2019-03-31 19:27:38 -03:00 committed by Lex Berezhny
parent 2e22473ce3
commit 36a62d3756
2 changed files with 4 additions and 1 deletions

View file

@ -60,7 +60,7 @@ class ResolveCommand(CommandTestCase):
self.assertEqual(claim['claims_in_channel'], 0)
# resolve handles invalid data
txid = await self.blockchain.claim_name("gibberish", "cafecafe", "0.1")
txid = await self.blockchain_claim_name("gibberish", "cafecafe", "0.1")
await self.generate(1)
response = await self.resolve("lbry://gibberish")
self.assertSetEqual({'lbry://gibberish'}, set(response))

View file

@ -150,6 +150,9 @@ class CommandTestCase(IntegrationTestCase):
await self.blockchain.generate(blocks)
await self.ledger.on_header.where(self.blockchain.is_expected_block)
def blockchain_claim_name(self, name: str, value: str, amount: str):
return self.blockchain._cli_cmnd('claimname', name, value, amount)
async def out(self, awaitable):
""" Converts Daemon API call results (dictionary)
to JSON and then back to a dictionary. """