fix for unit/wallet/test_accounts.py

This commit is contained in:
Lex Berezhny 2018-08-16 11:48:50 -04:00 committed by Jack Robison
parent cbc98e72a7
commit 84c91c480f
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 7 additions and 5 deletions

View file

@ -2,6 +2,7 @@ from twisted.trial import unittest
from twisted.internet import defer from twisted.internet import defer
from lbrynet.wallet.ledger import MainNetLedger, WalletDatabase from lbrynet.wallet.ledger import MainNetLedger, WalletDatabase
from lbrynet.wallet.header import Headers
from lbrynet.wallet.account import Account from lbrynet.wallet.account import Account
from torba.wallet import Wallet from torba.wallet import Wallet
@ -9,8 +10,11 @@ from torba.wallet import Wallet
class TestAccount(unittest.TestCase): class TestAccount(unittest.TestCase):
def setUp(self): def setUp(self):
self.ledger = MainNetLedger({'db': WalletDatabase(':memory:')}) self.ledger = MainNetLedger({
return self.ledger.db.start() 'db': WalletDatabase(':memory:'),
'headers': Headers(':memory:')
})
return self.ledger.db.open()
@defer.inlineCallbacks @defer.inlineCallbacks
def test_generate_account(self): def test_generate_account(self):

View file

@ -16,8 +16,6 @@ setenv =
LEDGER=lbrynet.wallet LEDGER=lbrynet.wallet
commands = commands =
orchstr8 download 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_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.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