diff --git a/tests/unit/wallet/test_account.py b/tests/unit/wallet/test_account.py index 6469d9380..af05828ca 100644 --- a/tests/unit/wallet/test_account.py +++ b/tests/unit/wallet/test_account.py @@ -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): diff --git a/tox.ini b/tox.ini index c2e00daed..52433c2c2 100644 --- a/tox.ini +++ b/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 -