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

tests/device_tests: remove all star imports

This commit is contained in:
matejcik 2018-05-11 14:53:51 +02:00
parent 266e34eec4
commit 123aec5d7d
36 changed files with 83 additions and 58 deletions

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 .common import *
from .common import TrezorTest
from trezorlib import messages

View File

@ -15,11 +15,10 @@
#
# 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 .common import *
import time
import pytest
from .common import TrezorTest
class TestBip32Speed(TrezorTest):

View File

@ -15,9 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,8 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest
import time
from trezorlib import messages as proto

View File

@ -15,8 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,8 +15,10 @@
#
# 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 binascii import hexlify, unhexlify
import pytest
from .common import *
from .common import TrezorTest
class TestMsgCipherkeyvalue(TrezorTest):

View File

@ -15,8 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,8 +15,9 @@
#
# 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 binascii import hexlify
from .common import *
from .common import TrezorTest
class TestMsgEthereumGetaddress(TrezorTest):

View File

@ -14,8 +14,10 @@
#
# 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 binascii import hexlify
import pytest
from .common import *
from .common import TrezorTest
@pytest.mark.skip_t2

View File

@ -15,8 +15,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 binascii import unhexlify, hexlify
from .common import *
import pytest
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -14,8 +14,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 binascii import unhexlify
from .common import *
import pytest
from .common import TrezorTest
@pytest.mark.skip_t2

View File

@ -15,8 +15,9 @@
#
# 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 binascii import unhexlify
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -16,10 +16,9 @@
# 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
import math
from .common import *
from .common import TrezorTest
import trezorlib.messages as proto

View File

@ -15,8 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest
@pytest.mark.skip_t2

View File

@ -15,8 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest
@pytest.mark.skip_t2

View File

@ -15,8 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -16,9 +16,9 @@
# 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
import pytest
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -16,9 +16,9 @@
# 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
import pytest
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -16,11 +16,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 __future__ import print_function
import time
from .common import *
import pytest
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,8 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest, generate_entropy
from trezorlib import messages as proto
from mnemonic import Mnemonic

View File

@ -15,8 +15,9 @@
#
# 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/>.
import pytest
from .common import *
from .common import TrezorTest, generate_entropy
from trezorlib import messages as proto
from mnemonic import Mnemonic

View File

@ -17,8 +17,9 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
import time
import pytest
from .common import *
from .common import TrezorTest, generate_entropy
from trezorlib import messages as proto
from mnemonic import Mnemonic

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 __future__ import print_function
import struct
from .common import *
from binascii import hexlify, unhexlify
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,8 +15,9 @@
#
# 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 binascii import hexlify
from .common import *
from .common import TrezorTest
class TestMsgSignmessage(TrezorTest):

View File

@ -15,8 +15,9 @@
#
# 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 binascii import hexlify
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,8 +15,9 @@
#
# 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 binascii import hexlify
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,7 +15,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 binascii import hexlify, unhexlify
from binascii import unhexlify
import pytest
from .common import TrezorTest

View File

@ -15,12 +15,14 @@
#
# 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 binascii import unhexlify, hexlify
import pytest
from .common import *
from .common import TrezorTest
from trezorlib import coins
from trezorlib import messages as proto
from trezorlib.tools import parse_path
TxApiZcash = coins.tx_api["Zcash"]
@ -28,8 +30,7 @@ TxApiZcash = coins.tx_api["Zcash"]
TXHASH_93373e = unhexlify('93373e63cc626c4a7d049ad775d6511bb5eba985f142db660c9b9f955c722f5c')
@pytest.mark.skip_t1
@pytest.mark.skip_t2
@pytest.mark.skip(reason="Broken until we have support for Zcash v3 transactions.")
class TestMsgSigntxZcash(TrezorTest):
def test_one_one_fee(self):
@ -39,7 +40,7 @@ class TestMsgSigntxZcash(TrezorTest):
# input 0: 1.234567 TAZ
inp1 = proto.TxInputType(
address_n=[2147483692, 2147483649, 2147483648, 0, 0], # tmQoJ3PTXgQLaRRZZYT6xk8XtjRbr2kCqwu
address_n=parse_path("m/Zcash Testnet/0h/0/0"), # tmQoJ3PTXgQLaRRZZYT6xk8XtjRbr2kCqwu
# amount=123456700,
prev_hash=TXHASH_93373e,
prev_index=0,

View File

@ -15,9 +15,9 @@
#
# 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 binascii import unhexlify
from .common import *
import base64
from .common import TrezorTest
class TestMsgVerifymessage(TrezorTest):

View File

@ -15,9 +15,9 @@
#
# 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 binascii import unhexlify
from .common import *
import base64
from .common import TrezorTest
class TestMsgVerifymessageSegwit(TrezorTest):

View File

@ -15,9 +15,9 @@
#
# 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 binascii import unhexlify
from .common import *
import base64
from .common import TrezorTest
class TestMsgVerifymessageSegwitNative(TrezorTest):

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 .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,8 +15,9 @@
#
# 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 binascii import unhexlify, hexlify
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto
from trezorlib.client import CallException

View File

@ -16,10 +16,10 @@
# 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
import time
from .common import *
import pytest
from .common import TrezorTest
from trezorlib import messages as proto
from trezorlib.client import PinException, CallException

View File

@ -15,8 +15,10 @@
#
# 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 binascii import unhexlify
import pytest
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto

View File

@ -15,12 +15,9 @@
#
# 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 binascii import unhexlify
from __future__ import print_function
import sys
from .common import *
from .common import TrezorTest
from trezorlib import messages as proto