From 2138e7ea3370af4100d644bf29a4711654c71767 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 8 Sep 2021 11:58:00 -0400 Subject: [PATCH] fix tests --- lbry/wallet/server/db/elasticsearch/constants.py | 7 +++---- tests/integration/blockchain/test_network.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lbry/wallet/server/db/elasticsearch/constants.py b/lbry/wallet/server/db/elasticsearch/constants.py index d7eedd454..45c5eb853 100644 --- a/lbry/wallet/server/db/elasticsearch/constants.py +++ b/lbry/wallet/server/db/elasticsearch/constants.py @@ -53,7 +53,7 @@ FIELDS = { 'duration', 'release_time', 'tags', 'languages', 'has_source', 'reposted_claim_type', 'reposted_claim_id', 'repost_count', - 'trending_score', 'tx_num', 'trending_score_change' + 'trending_score', 'tx_num' } TEXT_FIELDS = {'author', 'canonical_url', 'channel_id', 'description', 'claim_id', 'censoring_channel_id', @@ -72,11 +72,10 @@ RANGE_FIELDS = { ALL_FIELDS = RANGE_FIELDS | TEXT_FIELDS | FIELDS REPLACEMENTS = { - 'trending_mixed': 'trending_score' - # 'name': 'normalized_name', + 'trending_mixed': 'trending_score', 'txid': 'tx_id', 'nout': 'tx_nout', - 'valid_channel_signature': 'is_signature_valid', + 'normalized_name': 'normalized', 'stream_types': 'stream_type', 'media_types': 'media_type', 'reposted': 'repost_count' diff --git a/tests/integration/blockchain/test_network.py b/tests/integration/blockchain/test_network.py index 3f757f14b..171d457c4 100644 --- a/tests/integration/blockchain/test_network.py +++ b/tests/integration/blockchain/test_network.py @@ -33,7 +33,7 @@ class NetworkTests(IntegrationTestCase): 'donation_address': '', 'daily_fee': '0', 'server_version': lbry.__version__, - 'trending_algorithm': 'zscore', + 'trending_algorithm': 'variable_decay', }, await self.ledger.network.get_server_features()) # await self.conductor.spv_node.stop() payment_address, donation_address = await self.account.get_addresses(limit=2) @@ -58,7 +58,7 @@ class NetworkTests(IntegrationTestCase): 'donation_address': donation_address, 'daily_fee': '42', 'server_version': lbry.__version__, - 'trending_algorithm': 'zscore', + 'trending_algorithm': 'variable_decay', }, await self.ledger.network.get_server_features())