From 01dbbb4c3a5bfc732bb5d17f40cfa559d96e4cbd Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 9 Jun 2020 23:26:59 -0400 Subject: [PATCH] skip blockchain sync unittest --- tests/unit/blockchain/test_sync.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/unit/blockchain/test_sync.py b/tests/unit/blockchain/test_sync.py index ee4e5edef..d47d72c19 100644 --- a/tests/unit/blockchain/test_sync.py +++ b/tests/unit/blockchain/test_sync.py @@ -1,12 +1,13 @@ import tempfile import ecdsa import hashlib +from unittest import skip from binascii import hexlify from typing import List, Tuple from lbry.testcase import AsyncioTestCase, get_output from lbry.conf import Config -from lbry.db import RowCollector +from lbry.db.query_context import BulkLoader from lbry.schema.claim import Claim from lbry.schema.result import Censor from lbry.blockchain.block import Block @@ -35,6 +36,7 @@ def censored_search(**constraints) -> Tuple[List, Censor]: return rows, censor +@skip('figure out what to do with these tests, claimtrie calcs are now done by lbrycrd') class TestSQLDB(AsyncioTestCase): async def asyncSetUp(self): @@ -61,7 +63,7 @@ class TestSQLDB(AsyncioTestCase): timestamp=99, bits=1, nonce=1, txs=txs ) await add_block_to_lbrycrd(self.chain, block, takeovers or []) - await RowCollector(self.db).add_block(block).save() + await BulkLoader(self.db).add_block(block).save() await self.service.sync.post_process() return [tx.outputs[0] for tx in txs] @@ -140,6 +142,7 @@ class TestSQLDB(AsyncioTestCase): ) +@skip('figure out what to do with these tests, claimtrie calcs are now done by lbrycrd') class TestClaimtrie(TestSQLDB): def setUp(self): @@ -285,6 +288,7 @@ class TestClaimtrie(TestSQLDB): self.assertEqual('#abcdef0123456789beef', f.finalize()) +@skip('figure out what to do with these tests, claimtrie calcs are now done by lbrycrd') class TestTrending(TestSQLDB): def test_trending(self): @@ -316,6 +320,7 @@ class TestTrending(TestSQLDB): self.advance(zscore.TRENDING_WINDOW * 2, [self.get_support(problematic, 500000000)]) +@skip('figure out what to do with these tests, claimtrie calcs are now done by lbrycrd') class TestContentBlocking(TestSQLDB): def test_blocking_and_filtering(self):