tests: move tx_cache impl

pull/404/head
matejcik 5 years ago committed by matejcik
parent b4fa6f2a7f
commit eb6f6dd572

@ -19,9 +19,9 @@ import pytest
from trezorlib import btc, messages as proto
from trezorlib.tools import H_, CallException, btc_hash, parse_path
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .conftest import TREZOR_VERSION
from .tx_cache import tx_cache
TXHASH_157041 = bytes.fromhex(
"1570416eb4302cf52979afd5e6909e37d8fdd874301f7cc87e547e509cb1caa6"

@ -20,8 +20,8 @@ from trezorlib import btc, messages as proto
from trezorlib.tools import H_, CallException, parse_path
from ..support.ckd_public import deserialize
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Bcash")

@ -20,8 +20,8 @@ from trezorlib import btc, messages as proto
from trezorlib.tools import H_, CallException, parse_path
from ..support.ckd_public import deserialize
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Bgold")

@ -19,8 +19,8 @@ import pytest
from trezorlib import btc, messages
from trezorlib.tools import parse_path
from ..support.tx_cache import tx_cache
from .conftest import setup_client
from .tx_cache import tx_cache
TXHASH_3bf506 = bytes.fromhex(
"3bf506c81ce84eda891679ddc797d162c17c60b15d6c0ac23be5e31369e7235f"

@ -17,8 +17,8 @@
from trezorlib import btc, messages as proto
from trezorlib.tools import parse_path
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Dash")

@ -19,8 +19,8 @@ import pytest
from trezorlib import btc, messages as proto
from trezorlib.tools import parse_path
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Decred Testnet")

@ -17,8 +17,8 @@
from trezorlib import btc, messages as proto
from trezorlib.tools import parse_path
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Groestlcoin")

@ -19,9 +19,9 @@ import pytest
from trezorlib import btc, messages as proto
from trezorlib.tools import parse_path
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .conftest import TREZOR_VERSION
from .tx_cache import tx_cache
# KMD has no usable backends, use cached TX only
TX_API = tx_cache("Komodo", allow_fetch=False)

@ -20,9 +20,9 @@ from trezorlib import btc, messages as proto
from trezorlib.tools import H_, CallException, parse_path
from ..support.ckd_public import deserialize
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .conftest import TREZOR_VERSION
from .tx_cache import tx_cache
TX_API = tx_cache("Testnet")

@ -18,8 +18,8 @@ from trezorlib import btc, messages as proto
from trezorlib.tools import H_, parse_path
from ..support.ckd_public import deserialize
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Testnet")

@ -19,8 +19,8 @@ import pytest
from trezorlib import btc, messages as proto
from trezorlib.tools import parse_path
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Zcash Testnet")

@ -21,8 +21,8 @@ from trezorlib.tools import CallException, parse_path
from ..support import ckd_public as bip32
from ..support.ckd_public import deserialize
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Bitcoin")

@ -18,8 +18,8 @@ from trezorlib import btc, messages as proto
from trezorlib.tools import H_, parse_path
from ..support import ckd_public as bip32
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TX_API = tx_cache("Testnet")

@ -19,9 +19,9 @@ import pytest
from trezorlib import btc, messages as proto
from trezorlib.tools import CallException, parse_path
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .conftest import TREZOR_VERSION
from .tx_cache import tx_cache
TX_API = tx_cache("Bitcoin")

@ -18,8 +18,8 @@ import pytest
from trezorlib import btc, debuglink, device, messages as proto, misc
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TXHASH_d5f65e = bytes.fromhex(
"d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882"

@ -16,8 +16,8 @@
from trezorlib import btc, messages as proto
from ..support.tx_cache import tx_cache
from .common import TrezorTest
from .tx_cache import tx_cache
TXHASH_d5f65e = bytes.fromhex(
"d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882"

Loading…
Cancel
Save