From b21c71a420ace24eca35abbcf64b190c6e778b9b Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 24 Mar 2022 19:05:24 -0400 Subject: [PATCH] cleanup --- lbry/wallet/server/db/elasticsearch/search.py | 1 - tests/integration/claims/test_claim_commands.py | 14 ++++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/lbry/wallet/server/db/elasticsearch/search.py b/lbry/wallet/server/db/elasticsearch/search.py index 4d5bcd043..a171d47c3 100644 --- a/lbry/wallet/server/db/elasticsearch/search.py +++ b/lbry/wallet/server/db/elasticsearch/search.py @@ -694,7 +694,6 @@ def expand_query(**kwargs): "sort": query["sort"] } } - print('query', query) return query diff --git a/tests/integration/claims/test_claim_commands.py b/tests/integration/claims/test_claim_commands.py index d733f7590..7febaed52 100644 --- a/tests/integration/claims/test_claim_commands.py +++ b/tests/integration/claims/test_claim_commands.py @@ -407,18 +407,12 @@ class ClaimSearchCommand(ClaimTestCase): async def test_no_source_and_valid_channel_signature_and_media_type(self): await self.channel_create('@spam2', '1.0') - newstream = await self.stream_create('barrrrrr', '1.0', channel_name='@spam2', file_path=self.video_file_name) - print('news', newstream) - all_claims = await self.claim_search() ## why this is missing "newstream" above - no_source_claims = await self.claim_search(has_no_source=True, valid_channel_signature=True, + await self.stream_create('barrrrrr', '1.0', channel_name='@spam2', file_path=self.video_file_name) + paradox_no_source_claims = await self.claim_search(has_no_source=True, valid_channel_signature=True, media_type="video/mp4") mp4_claims = await self.claim_search(media_type="video/mp4") - no_source_claims_no_media = await self.claim_search(has_no_source=True, valid_channel_signature=True) - print('ALL', all_claims) - print('NOSRC', no_source_claims) - print('MP4', mp4_claims) - print('NSRC NO MEDIA', no_source_claims_no_media) - self.assertEqual(1, len(no_source_claims_no_media)) + no_source_claims = await self.claim_search(has_no_source=True, valid_channel_signature=True) + self.assertEqual(0, len(paradox_no_source_claims)) self.assertEqual(1, len(no_source_claims)) self.assertEqual(1, len(mp4_claims))