fix tests

This commit is contained in:
Jack Robison 2021-09-08 11:58:00 -04:00 committed by Victor Shyba
parent b59e0490a2
commit 72e45b5cb1
2 changed files with 5 additions and 6 deletions

View file

@ -53,7 +53,7 @@ FIELDS = {
'duration', 'release_time', 'duration', 'release_time',
'tags', 'languages', 'has_source', 'reposted_claim_type', 'tags', 'languages', 'has_source', 'reposted_claim_type',
'reposted_claim_id', 'repost_count', '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', 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 ALL_FIELDS = RANGE_FIELDS | TEXT_FIELDS | FIELDS
REPLACEMENTS = { REPLACEMENTS = {
'trending_mixed': 'trending_score' 'trending_mixed': 'trending_score',
# 'name': 'normalized_name',
'txid': 'tx_id', 'txid': 'tx_id',
'nout': 'tx_nout', 'nout': 'tx_nout',
'valid_channel_signature': 'is_signature_valid', 'normalized_name': 'normalized',
'stream_types': 'stream_type', 'stream_types': 'stream_type',
'media_types': 'media_type', 'media_types': 'media_type',
'reposted': 'repost_count' 'reposted': 'repost_count'

View file

@ -33,7 +33,7 @@ class NetworkTests(IntegrationTestCase):
'donation_address': '', 'donation_address': '',
'daily_fee': '0', 'daily_fee': '0',
'server_version': lbry.__version__, 'server_version': lbry.__version__,
'trending_algorithm': 'zscore', 'trending_algorithm': 'variable_decay',
}, await self.ledger.network.get_server_features()) }, await self.ledger.network.get_server_features())
# await self.conductor.spv_node.stop() # await self.conductor.spv_node.stop()
payment_address, donation_address = await self.account.get_addresses(limit=2) payment_address, donation_address = await self.account.get_addresses(limit=2)
@ -58,7 +58,7 @@ class NetworkTests(IntegrationTestCase):
'donation_address': donation_address, 'donation_address': donation_address,
'daily_fee': '42', 'daily_fee': '42',
'server_version': lbry.__version__, 'server_version': lbry.__version__,
'trending_algorithm': 'zscore', 'trending_algorithm': 'variable_decay',
}, await self.ledger.network.get_server_features()) }, await self.ledger.network.get_server_features())