1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

tests: update imports after tests.support move

This commit is contained in:
matejcik 2018-04-18 14:00:11 +02:00
parent 603b201ad0
commit 4f66b37f25
14 changed files with 42 additions and 33 deletions

View File

@ -16,10 +16,11 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import pytest
from hashlib import sha256
from trezorlib import ed25519raw, ed25519cosi
from .common import TrezorTest
from ..support import ed25519cosi, ed25519raw
@pytest.mark.skip_t2

View File

@ -16,9 +16,11 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import pytest
from .common import TrezorTest
from ..support import ckd_public as bip32
from trezorlib import messages as proto
import trezorlib.ckd_public as bip32
class TestMsgGetaddress(TrezorTest):

View File

@ -15,8 +15,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import trezorlib.ckd_public as bip32
from .common import TrezorTest
from ..support import ckd_public as bip32
from trezorlib import messages as proto

View File

@ -15,8 +15,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import trezorlib.ckd_public as bip32
from .common import TrezorTest
from ..support import ckd_public as bip32
from trezorlib import messages as proto

View File

@ -16,8 +16,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import trezorlib.ckd_public as bip32
from .common import TrezorTest
from ..support import ckd_public as bip32
from trezorlib import messages as proto

View File

@ -16,8 +16,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import trezorlib.ckd_public as bip32
from .common import TrezorTest
from ..support import ckd_public as bip32
class TestMsgGetpublickey(TrezorTest):

View File

@ -16,8 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import trezorlib.ckd_public as bip32
from .common import TrezorTest
from trezorlib.client import CallException

View File

@ -15,10 +15,13 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import pytest
from binascii import hexlify, unhexlify
from .common import TrezorTest
from ..support.ckd_public import deserialize
from trezorlib import coins
from trezorlib import messages as proto
from trezorlib.ckd_public import deserialize
from trezorlib.client import CallException
TxApiBcash = coins.tx_api['Bcash']
@ -256,7 +259,6 @@ class TestMsgSigntxBch(TrezorTest):
attack_ctr = 0
def attack_processor(req, msg):
import sys
global attack_ctr
if req.details.tx_hash is not None:

View File

@ -16,10 +16,13 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
import pytest
from binascii import hexlify, unhexlify
from .common import TrezorTest
from ..support.ckd_public import deserialize
from trezorlib import coins
from trezorlib import messages as proto
from trezorlib.ckd_public import deserialize
from trezorlib.client import CallException
TxApiBitcoinGold = coins.tx_api["Bitcoin Gold"]
@ -129,7 +132,6 @@ class TestMsgSigntxBitcoinGold(TrezorTest):
attack_ctr = 0
def attack_processor(req, msg):
import sys
global attack_ctr
if req.details.tx_hash is not None:

View File

@ -15,11 +15,12 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
from binascii import hexlify, unhexlify
from .common import TrezorTest
from ..support.ckd_public import deserialize
from trezorlib import coins
from trezorlib import messages as proto
from trezorlib.ckd_public import deserialize
from trezorlib.client import CallException
TxApiTestnet = coins.tx_api["Testnet"]
@ -186,7 +187,6 @@ class TestMsgSigntxSegwit(TrezorTest):
run_attack = True
def attack_processor(req, msg):
import sys
global run_attack
if req.details.tx_hash is not None:

View File

@ -15,11 +15,13 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
from binascii import hexlify, unhexlify
from .common import TrezorTest
from ..support.ckd_public import deserialize
from trezorlib import coins
from trezorlib import messages as proto
from trezorlib.ckd_public import deserialize
from trezorlib.client import CallException
TxApiTestnet = coins.tx_api['Testnet']

View File

@ -16,14 +16,13 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
from binascii import hexlify, unhexlify
from .common import *
from .common import TrezorTest
from ..support import ckd_public as bip32
from trezorlib import messages as proto
import trezorlib.ckd_public as bip32
from trezorlib.client import CallException
TXHASH_c6091a = unhexlify('c6091adf4c0c23982a35899a6e58ae11e703eacd7954f588ed4b9cdefc4dba52')

View File

@ -16,9 +16,11 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from .common import *
from binascii import hexlify, unhexlify
from .common import TrezorTest
from ..support import ckd_public as bip32
from trezorlib import messages as proto
import trezorlib.ckd_public as bip32
from trezorlib.coins import tx_api

View File

@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <http://www.gnu.org/licenses/>.
from trezorlib import ckd_public
from ..support import ckd_public
def test_ckd_public():