From 3108543ae5f46c7a7eb06def3e890155cd714496 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 22 Jul 2021 00:39:36 -0300 Subject: [PATCH] 3 missing fields --- lbry/wallet/server/db/elasticsearch/constants.py | 2 +- tests/integration/blockchain/test_claim_commands.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/server/db/elasticsearch/constants.py b/lbry/wallet/server/db/elasticsearch/constants.py index d9b736e85..54e9f31a6 100644 --- a/lbry/wallet/server/db/elasticsearch/constants.py +++ b/lbry/wallet/server/db/elasticsearch/constants.py @@ -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', } diff --git a/tests/integration/blockchain/test_claim_commands.py b/tests/integration/blockchain/test_claim_commands.py index 6d7863581..effc2542e 100644 --- a/tests/integration/blockchain/test_claim_commands.py +++ b/tests/integration/blockchain/test_claim_commands.py @@ -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)),