From 69e41c2d053a35e44788325fcee4a57e28d3d315 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Sat, 15 Mar 2025 00:42:40 +0100 Subject: [PATCH] fix style --- core/src/trezor/wire/thp/interface_manager.py | 2 +- tests/device_tests/thp/test_handshake.py | 3 +-- tests/device_tests/thp/test_multiple_apps.py | 5 +++-- tests/device_tests/thp/test_pairing.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/trezor/wire/thp/interface_manager.py b/core/src/trezor/wire/thp/interface_manager.py index b8d2b6fee6..71aca97327 100644 --- a/core/src/trezor/wire/thp/interface_manager.py +++ b/core/src/trezor/wire/thp/interface_manager.py @@ -1,7 +1,7 @@ from typing import TYPE_CHECKING -import usb import bluetooth +import usb _WIRE_INTERFACE_USB = b"\x01" _WIRE_INTERFACE_BLE = b"\x02" diff --git a/tests/device_tests/thp/test_handshake.py b/tests/device_tests/thp/test_handshake.py index b773a7bc5c..35245001a9 100644 --- a/tests/device_tests/thp/test_handshake.py +++ b/tests/device_tests/thp/test_handshake.py @@ -1,13 +1,12 @@ import os + import pytest from trezorlib.client import ProtocolV2Channel from trezorlib.debuglink import TrezorClientDebugLink as Client - from .connect import prepare_protocol_for_handshake - pytestmark = [pytest.mark.protocol("protocol_v2")] diff --git a/tests/device_tests/thp/test_multiple_apps.py b/tests/device_tests/thp/test_multiple_apps.py index adea18a2b9..9633f754a2 100644 --- a/tests/device_tests/thp/test_multiple_apps.py +++ b/tests/device_tests/thp/test_multiple_apps.py @@ -1,8 +1,9 @@ import os import time -import pytest -from trezorlib.client import ProtocolV2Channel +import pytest + +from trezorlib.client import ProtocolV2Channel from trezorlib.debuglink import TrezorClientDebugLink as Client pytestmark = [pytest.mark.protocol("protocol_v2")] diff --git a/tests/device_tests/thp/test_pairing.py b/tests/device_tests/thp/test_pairing.py index 725c6908d4..5c0f127e05 100644 --- a/tests/device_tests/thp/test_pairing.py +++ b/tests/device_tests/thp/test_pairing.py @@ -33,10 +33,10 @@ from trezorlib.transport.thp import curve25519 from trezorlib.transport.thp.cpace import Cpace from .connect import ( - prepare_protocol_for_handshake, - prepare_protocol_for_pairing, get_encrypted_transport_protocol, handle_pairing_request, + prepare_protocol_for_handshake, + prepare_protocol_for_pairing, ) if t.TYPE_CHECKING: