adds get_claims_by_ids and fix a test name

This commit is contained in:
Victor Shyba 2018-07-10 01:31:21 -03:00 committed by Jack Robison
parent b62321689d
commit 036663ae62
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 4 additions and 1 deletions

View file

@ -5,3 +5,6 @@ class Network(BaseNetwork):
def get_values_for_uris(self, block_hash, *uris):
return self.rpc('blockchain.claimtrie.getvaluesforuris', block_hash, *uris)
def get_claims_by_ids(self, *claim_ids):
return self.rpc("blockchain.claimtrie.getclaimsbyids", *claim_ids)

View file

@ -78,7 +78,7 @@ def get_test_daemon(data_rate=None, generous=True, with_fee=False):
if with_fee:
metadata.update(
{"fee": {"USD": {"address": "bQ6BGboPV2SpTMEP7wLNiAcnsZiH8ye6eA", "amount": 0.75}}})
daemon._resolve_name = lambda _: defer.succeed(metadata)
daemon._resolve = lambda _: defer.succeed(metadata)
migrated = smart_decode(json.dumps(metadata))
daemon.wallet.resolve = lambda *_: defer.succeed(
{"test": {'claim': {'value': migrated.claim_dict}}})