fix unit wallet tests

This commit is contained in:
Lex Berezhny 2020-01-03 01:55:19 -05:00
parent 87e2d2c7b0
commit 3d9841b61a
9 changed files with 10 additions and 10 deletions

View file

@ -3,7 +3,7 @@ import ecdsa
import hashlib
import logging
from binascii import hexlify
from lbry.wallet.client.constants import COIN, NULL_HASH32
from lbry.wallet.constants import COIN, NULL_HASH32
from lbry.schema.claim import Claim
from lbry.wallet.server.db import reader, writer

View file

@ -1,7 +1,7 @@
from binascii import unhexlify, hexlify
from lbry.testcase import AsyncioTestCase
from lbry.wallet.client.bip32 import PubKey, PrivateKey, from_extended_key_string
from lbry.wallet.bip32 import PubKey, PrivateKey, from_extended_key_string
from lbry.wallet import Ledger, Database, Headers
from tests.unit.wallet.key_fixtures import expected_ids, expected_privkeys, expected_hardened_privkeys

View file

@ -3,7 +3,7 @@ from types import GeneratorType
from lbry.testcase import AsyncioTestCase
from lbry.wallet import Ledger, Database, Headers
from lbry.wallet.client.coinselection import CoinSelector, MAXIMUM_TRIES
from lbry.wallet.coinselection import CoinSelector, MAXIMUM_TRIES
from lbry.constants import CENT
from tests.unit.wallet.test_transaction import get_output as utxo

View file

@ -9,7 +9,7 @@ from concurrent.futures.thread import ThreadPoolExecutor
from lbry.wallet import (
Wallet, Account, Ledger, Database, Headers, Transaction, Input
)
from lbry.wallet.client.constants import COIN
from lbry.wallet.constants import COIN
from lbry.wallet.database import query, interpolate, constraints_to_sql, AIOSQLite
from lbry.crypto.hash import sha256
from lbry.testcase import AsyncioTestCase

View file

@ -4,7 +4,7 @@ import tempfile
from binascii import hexlify, unhexlify
from lbry.crypto.hash import sha256
from lbry.wallet.client.util import ArithUint256
from lbry.wallet.util import ArithUint256
from lbry.testcase import AsyncioTestCase
from lbry.wallet.ledger import Headers

View file

@ -1,7 +1,7 @@
import unittest
from binascii import hexlify
from lbry.wallet.client.mnemonic import Mnemonic
from lbry.wallet.mnemonic import Mnemonic
class TestMnemonic(unittest.TestCase):

View file

@ -1,7 +1,7 @@
from binascii import unhexlify
from lbry.testcase import AsyncioTestCase
from lbry.wallet.client.constants import CENT, NULL_HASH32
from lbry.wallet.constants import CENT, NULL_HASH32
from lbry.wallet import Ledger, Database, Headers, Transaction, Input, Output
from lbry.schema.claim import Claim

View file

@ -3,7 +3,7 @@ from binascii import hexlify, unhexlify
from itertools import cycle
from lbry.testcase import AsyncioTestCase
from lbry.wallet.client.constants import CENT, COIN, NULL_HASH32
from lbry.wallet.constants import CENT, COIN, NULL_HASH32
from lbry.wallet import Wallet, Account, Ledger, Database, Headers, Transaction, Output, Input

View file

@ -1,7 +1,7 @@
import unittest
from lbry.wallet.client.util import ArithUint256
from lbry.wallet.client.util import coins_to_satoshis as c2s, satoshis_to_coins as s2c
from lbry.wallet.util import ArithUint256
from lbry.wallet.util import coins_to_satoshis as c2s, satoshis_to_coins as s2c
class TestCoinValueParsing(unittest.TestCase):