forked from LBRYCommunity/lbry-sdk
skip blockchain sync unittest
This commit is contained in:
parent
96d1926da4
commit
01dbbb4c3a
1 changed files with 7 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue