1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-27 08:38:07 +00:00

tests: move tx_cache impl

This commit is contained in:
matejcik 2019-08-06 14:42:11 +02:00 committed by matejcik
parent b4fa6f2a7f
commit eb6f6dd572
17 changed files with 16 additions and 16 deletions

View File

@ -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"

View File

@ -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")

View File

@ -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")

View File

@ -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"

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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)

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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"

View File

@ -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"