forked from LBRYCommunity/lbry-sdk
improve tests, fix types
This commit is contained in:
parent
200531dd96
commit
5a6218eeca
2 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ class WalletManager:
|
||||||
self.ledgers = ledgers or {}
|
self.ledgers = ledgers or {}
|
||||||
self.running = False
|
self.running = False
|
||||||
self.config: Optional[Config] = None
|
self.config: Optional[Config] = None
|
||||||
self.usage_payment_service: Optional[WalletManager] = None
|
self.usage_payment_service: Optional[WalletServerPayer] = None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_config(cls, config: dict) -> 'WalletManager':
|
def from_config(cls, config: dict) -> 'WalletManager':
|
||||||
|
|
|
@ -54,7 +54,6 @@ class TestSegwitServer(IntegrationTestCase):
|
||||||
|
|
||||||
|
|
||||||
class TestUsagePayment(CommandTestCase):
|
class TestUsagePayment(CommandTestCase):
|
||||||
VERBOSITY = 'DEBUG'
|
|
||||||
LEDGER = lbry.wallet
|
LEDGER = lbry.wallet
|
||||||
|
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
|
@ -77,6 +76,7 @@ class TestUsagePayment(CommandTestCase):
|
||||||
self.assertEqual(features["payment_address"], address)
|
self.assertEqual(features["payment_address"], address)
|
||||||
self.assertEqual(features["daily_fee"], "1.1")
|
self.assertEqual(features["daily_fee"], "1.1")
|
||||||
|
|
||||||
|
if len(history) == 0:
|
||||||
await self.on_address_update(address)
|
await self.on_address_update(address)
|
||||||
_, history = await self.ledger.get_local_status_and_history(address)
|
_, history = await self.ledger.get_local_status_and_history(address)
|
||||||
txid, nout = history[0]
|
txid, nout = history[0]
|
||||||
|
|
Loading…
Reference in a new issue