mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-21 23:18:13 +00:00
chore(tests): organize device tests into folders
This commit is contained in:
parent
6c8e6dcc08
commit
782f868717
0
tests/device_tests/binance/__init__.py
Normal file
0
tests/device_tests/binance/__init__.py
Normal file
0
tests/device_tests/eos/__init__.py
Normal file
0
tests/device_tests/eos/__init__.py
Normal file
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib.eos import get_public_key
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
@pytest.mark.altcoin
|
@ -20,7 +20,7 @@ from trezorlib import eos
|
||||
from trezorlib.messages import EosSignedTx
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
CHAIN_ID = "cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f"
|
||||
ADDRESS_N = parse_path("m/44'/194'/0'/0/0")
|
0
tests/device_tests/monero/__init__.py
Normal file
0
tests/device_tests/monero/__init__.py
Normal file
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import monero
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
@pytest.mark.altcoin
|
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import monero
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
@pytest.mark.altcoin
|
0
tests/device_tests/nem/__init__.py
Normal file
0
tests/device_tests/nem/__init__.py
Normal file
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import nem
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
@pytest.mark.altcoin
|
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import nem
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
# assertion data from T1
|
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import nem
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
ADDRESS_N = parse_path("m/44'/1'/0'/0'/0'")
|
||||
|
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import nem
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
# assertion data from T1
|
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import nem
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
# assertion data from T1
|
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import messages as proto, nem
|
||||
from trezorlib.tools import parse_path
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
# assertion data from T1
|
0
tests/device_tests/recovery/__init__.py
Normal file
0
tests/device_tests/recovery/__init__.py
Normal file
@ -18,7 +18,7 @@ import pytest
|
||||
|
||||
from trezorlib import device, messages as proto
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
PIN4 = "1234"
|
||||
PIN6 = "789456"
|
@ -18,8 +18,8 @@ import pytest
|
||||
|
||||
from trezorlib import device, exceptions, messages
|
||||
|
||||
from .. import buttons
|
||||
from ..common import MNEMONIC12
|
||||
from ... import buttons
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
def do_recover_legacy(client, mnemonic, **kwargs):
|
@ -18,7 +18,7 @@ import pytest
|
||||
|
||||
from trezorlib import device, exceptions, messages
|
||||
|
||||
from ..common import MNEMONIC12
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
pytestmark = pytest.mark.skip_t1
|
||||
|
@ -18,7 +18,7 @@ import pytest
|
||||
|
||||
from trezorlib import device, exceptions, messages
|
||||
|
||||
from ..common import (
|
||||
from ...common import (
|
||||
MNEMONIC_SLIP39_ADVANCED_20,
|
||||
MNEMONIC_SLIP39_ADVANCED_33,
|
||||
recovery_enter_shares,
|
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import device, messages
|
||||
from trezorlib.exceptions import TrezorFailure
|
||||
|
||||
from ..common import MNEMONIC_SLIP39_ADVANCED_20, recovery_enter_shares
|
||||
from ...common import MNEMONIC_SLIP39_ADVANCED_20, recovery_enter_shares
|
||||
|
||||
pytestmark = pytest.mark.skip_t1
|
||||
|
@ -18,7 +18,7 @@ import pytest
|
||||
|
||||
from trezorlib import device, exceptions, messages
|
||||
|
||||
from ..common import (
|
||||
from ...common import (
|
||||
MNEMONIC_SLIP39_BASIC_20_3of6,
|
||||
MNEMONIC_SLIP39_BASIC_20_3of6_SECRET,
|
||||
recovery_enter_shares,
|
@ -19,7 +19,7 @@ import pytest
|
||||
from trezorlib import device, messages
|
||||
from trezorlib.exceptions import TrezorFailure
|
||||
|
||||
from ..common import recovery_enter_shares
|
||||
from ...common import recovery_enter_shares
|
||||
|
||||
pytestmark = pytest.mark.skip_t1
|
||||
|
0
tests/device_tests/reset/__init__.py
Normal file
0
tests/device_tests/reset/__init__.py
Normal file
@ -19,7 +19,7 @@ from mnemonic import Mnemonic
|
||||
|
||||
from trezorlib import device, messages as proto
|
||||
|
||||
from ..common import generate_entropy
|
||||
from ...common import generate_entropy
|
||||
|
||||
|
||||
def reset_device(client, strength):
|
@ -19,7 +19,7 @@ from mnemonic import Mnemonic
|
||||
|
||||
from trezorlib import messages as proto
|
||||
|
||||
from ..common import generate_entropy
|
||||
from ...common import generate_entropy
|
||||
|
||||
|
||||
@pytest.mark.skip_t2
|
@ -23,7 +23,7 @@ from trezorlib import device, messages as proto
|
||||
from trezorlib.exceptions import TrezorFailure
|
||||
from trezorlib.messages import ButtonRequestType as B
|
||||
|
||||
from ..common import (
|
||||
from ...common import (
|
||||
MNEMONIC12,
|
||||
click_through,
|
||||
generate_entropy,
|
@ -23,7 +23,7 @@ from trezorlib import device, messages as proto
|
||||
from trezorlib.exceptions import TrezorFailure
|
||||
from trezorlib.messages import BackupType, ButtonRequestType as B
|
||||
|
||||
from ..common import click_through, generate_entropy, read_and_confirm_mnemonic
|
||||
from ...common import click_through, generate_entropy, read_and_confirm_mnemonic
|
||||
|
||||
EXTERNAL_ENTROPY = b"zlutoucky kun upel divoke ody" * 2
|
||||
|
@ -24,7 +24,7 @@ from trezorlib import device, messages as proto
|
||||
from trezorlib.exceptions import TrezorFailure
|
||||
from trezorlib.messages import BackupType, ButtonRequestType as B
|
||||
|
||||
from ..common import (
|
||||
from ...common import (
|
||||
EXTERNAL_ENTROPY,
|
||||
click_through,
|
||||
generate_entropy,
|
0
tests/device_tests/tezos/__init__.py
Normal file
0
tests/device_tests/tezos/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user