forked from LBRYCommunity/lbry-sdk
fix for unit/wallet/test_accounts.py
This commit is contained in:
parent
cbc98e72a7
commit
84c91c480f
2 changed files with 7 additions and 5 deletions
|
@ -2,6 +2,7 @@ from twisted.trial import unittest
|
|||
from twisted.internet import defer
|
||||
|
||||
from lbrynet.wallet.ledger import MainNetLedger, WalletDatabase
|
||||
from lbrynet.wallet.header import Headers
|
||||
from lbrynet.wallet.account import Account
|
||||
from torba.wallet import Wallet
|
||||
|
||||
|
@ -9,8 +10,11 @@ from torba.wallet import Wallet
|
|||
class TestAccount(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.ledger = MainNetLedger({'db': WalletDatabase(':memory:')})
|
||||
return self.ledger.db.start()
|
||||
self.ledger = MainNetLedger({
|
||||
'db': WalletDatabase(':memory:'),
|
||||
'headers': Headers(':memory:')
|
||||
})
|
||||
return self.ledger.db.open()
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_generate_account(self):
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -16,8 +16,6 @@ setenv =
|
|||
LEDGER=lbrynet.wallet
|
||||
commands =
|
||||
orchstr8 download
|
||||
coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.cli
|
||||
coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_transactions.BasicTransactionTest
|
||||
coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_commands.EpicAdventuresOfChris45
|
||||
coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.cli.test_cli.AuthCLIIntegrationTest
|
||||
coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.cli.test_cli.UnAuthCLIIntegrationTest
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue