1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-22 05:10:56 +00:00

test: fix style

[no changelog]
This commit is contained in:
M1nd3r 2024-11-26 14:43:28 +01:00
parent 643dd53775
commit bb87825324
3 changed files with 6 additions and 9 deletions

View File

@ -1036,7 +1036,7 @@ class SessionDebugWrapper(Session):
elif isinstance(session, SessionDebugWrapper): elif isinstance(session, SessionDebugWrapper):
raise Exception("Cannot wrap already wrapped session!") raise Exception("Cannot wrap already wrapped session!")
else: else:
self.session_version = -1 # UNKNOWN self.client.session_version = -1 # UNKNOWN
@property @property
def session_version(self) -> int: def session_version(self) -> int:

View File

@ -16,12 +16,10 @@
import pytest import pytest
from trezorlib import device from trezorlib import device, messages
from trezorlib import messages from trezorlib.debuglink import DebugLink, LayoutType
from trezorlib.debuglink import DebugLink, LayoutType, SessionDebugWrapper as Session from trezorlib.debuglink import SessionDebugWrapper as Session
from trezorlib.messages import RecoveryStatus, WipeDevice from trezorlib.messages import RecoveryStatus
from tests import buttons
from ..click_tests import common, recovery from ..click_tests import common, recovery
from ..common import MNEMONIC_SLIP39_ADVANCED_20, MNEMONIC_SLIP39_BASIC_20_3of6 from ..common import MNEMONIC_SLIP39_ADVANCED_20, MNEMONIC_SLIP39_BASIC_20_3of6

View File

@ -20,8 +20,7 @@ from typing import TYPE_CHECKING, List, Optional
import pytest import pytest
from shamir_mnemonic import shamir from shamir_mnemonic import shamir
from trezorlib import btc, debuglink, device, exceptions, fido, models from trezorlib import btc, debuglink, device, exceptions, fido, messages, models
from trezorlib import messages
from trezorlib.debuglink import SessionDebugWrapper as Session from trezorlib.debuglink import SessionDebugWrapper as Session
from trezorlib.messages import ( from trezorlib.messages import (
ApplySettings, ApplySettings,