1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-21 20:12:02 +00:00

test(core): remove dead code

This commit is contained in:
Martin Milata 2025-02-13 15:37:46 +01:00
parent 9456cfa784
commit e83315fff3
3 changed files with 5 additions and 14 deletions

View File

@ -446,8 +446,6 @@ class DebugLink:
self.waiting_for_layout_change = False
self.input_wait_type = DebugWaitType.IMMEDIATE
@property
def legacy_ui(self) -> bool:
"""Differences between UI1 and UI2."""

View File

@ -143,18 +143,12 @@ def _raw_client(request: pytest.FixtureRequest) -> Client:
def _get_raw_client(request: pytest.FixtureRequest) -> Client:
# In case tests run in parallel, each process has its own emulator/client.
# Requesting the emulator fixture only if relevant.
if request.session.config.getoption("control_emulators"):
emu_fixture = request.getfixturevalue("emulator")
client = emu_fixture.client
interact = os.environ.get("INTERACT") == "1"
path = os.environ.get("TREZOR_PATH")
if path:
client = _client_from_path(request, path, interact)
else:
interact = os.environ.get("INTERACT") == "1"
path = os.environ.get("TREZOR_PATH")
if path:
client = _client_from_path(request, path, interact)
else:
client = _find_client(request, interact)
client = _find_client(request, interact)
return client

View File

@ -50,7 +50,6 @@ class BackgroundDeviceHandler:
self.client = client
self.client.ui = NullUI # type: ignore [NullUI is OK UI]
self.client.watch_layout(True)
self.client.debug.input_wait_type = DebugWaitType.CURRENT_LAYOUT
def run_with_session(
self,