run functional tests first
run two integration tests on travis 😱
reduce integration test verbosity
This commit is contained in:
parent
ac8c641d64
commit
f85e61d8ed
3 changed files with 18 additions and 5 deletions
|
@ -10,7 +10,7 @@ lbryschema.BLOCKCHAIN_NAME = 'lbrycrd_regtest'
|
|||
from lbrynet import conf as lbry_conf
|
||||
from lbrynet.daemon.Daemon import Daemon
|
||||
from lbrynet.wallet.manager import LbryWalletManager
|
||||
from lbrynet.daemon.Components import WalletComponent
|
||||
from lbrynet.daemon.Components import WalletComponent, FileManager
|
||||
|
||||
|
||||
class FakeAnalytics:
|
||||
|
@ -50,9 +50,9 @@ class CommandTestCase(IntegrationTestCase):
|
|||
self.daemon.component_manager.components.add(wallet_component)
|
||||
|
||||
|
||||
class DaemonCommandsTests(CommandTestCase):
|
||||
class ChannelNewCommandTests(CommandTestCase):
|
||||
|
||||
VERBOSE = True
|
||||
VERBOSE = False
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_new_channel(self):
|
||||
|
@ -62,11 +62,22 @@ class DaemonCommandsTests(CommandTestCase):
|
|||
lambda e: e.tx.hex_id.decode() == result['txid']
|
||||
)
|
||||
|
||||
|
||||
class WalletBalanceCommandTests(CommandTestCase):
|
||||
|
||||
VERBOSE = True
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_wallet_balance(self):
|
||||
result = yield self.daemon.jsonrpc_wallet_balance()
|
||||
self.assertEqual(result, 10*COIN)
|
||||
|
||||
|
||||
class PublishCommandTests(CommandTestCase):
|
||||
|
||||
VERBOSE = True
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_publish(self):
|
||||
result = yield self.daemon.jsonrpc_publish('foo', 1*COIN)
|
||||
print(result)
|
||||
|
|
|
@ -40,7 +40,7 @@ example_claim_dict = {
|
|||
|
||||
class BasicTransactionTest(IntegrationTestCase):
|
||||
|
||||
VERBOSE = True
|
||||
VERBOSE = False
|
||||
|
||||
async def test_creating_updating_and_abandoning_claim_with_channel(self):
|
||||
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -18,6 +18,8 @@ setenv =
|
|||
integration: LEDGER=lbrynet.wallet
|
||||
commands =
|
||||
unit: pylint lbrynet
|
||||
unit: coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial unit functional
|
||||
unit: coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial functional unit
|
||||
integration: orchstr8 download
|
||||
integration: coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_transactions.BasicTransactionTest
|
||||
integration: coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_commands.ChannelNewCommandTests
|
||||
#integration: coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_commands.PublishCommandTests
|
||||
|
|
Loading…
Add table
Reference in a new issue