3 missing fields

This commit is contained in:
Victor Shyba 2021-07-22 00:39:36 -03:00 committed by Victor Shyba
parent 1eb221c743
commit 3108543ae5
2 changed files with 4 additions and 2 deletions

View file

@ -51,7 +51,7 @@ FIELDS = {
'title', 'author', 'description',
'timestamp', 'creation_timestamp',
'duration', 'release_time',
'tags',
'tags', 'languages', 'has_source', 'reposted_claim_type',
'reposted_claim_id', 'repost_count',
'trending_group', 'trending_mixed', 'trending_local', 'trending_global',
}

View file

@ -70,7 +70,9 @@ class ClaimSearchCommand(ClaimTestCase):
async def assertFindsClaims(self, claims, **kwargs):
kwargs.setdefault('order_by', ['height', '^name'])
results = await self.claim_search(**kwargs)
self.assertEqual(len(claims), len(results))
self.assertEqual(
len(claims), len(results),
f"{[claim['outputs'][0]['name'] for claim in claims]} != {[result['name'] for result in results]}")
for claim, result in zip(claims, results):
self.assertEqual(
(claim['txid'], self.get_claim_id(claim)),