From 36a62d3756818f24664d811c9329660e53a722a7 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 31 Mar 2019 19:27:38 -0300 Subject: [PATCH] port orchstr8 fix to our test case as its lbrynet specific --- tests/integration/test_resolve_command.py | 2 +- tests/integration/testcase.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_resolve_command.py b/tests/integration/test_resolve_command.py index bf8fbb74f..52c2a097e 100644 --- a/tests/integration/test_resolve_command.py +++ b/tests/integration/test_resolve_command.py @@ -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)) diff --git a/tests/integration/testcase.py b/tests/integration/testcase.py index 6663ff43f..1000c7074 100644 --- a/tests/integration/testcase.py +++ b/tests/integration/testcase.py @@ -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. """