From 84c91c480ff2601a295518a0dcf0ed883fb17a17 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 16 Aug 2018 11:48:50 -0400 Subject: [PATCH] fix for unit/wallet/test_accounts.py --- tests/unit/wallet/test_account.py | 8 ++++++-- tox.ini | 4 +--- 2 files changed, 7 insertions(+), 5 deletions(-) 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 -