mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-22 20:42:03 +00:00
test(core): remove dead code
This commit is contained in:
parent
9456cfa784
commit
e83315fff3
@ -446,8 +446,6 @@ class DebugLink:
|
|||||||
|
|
||||||
self.waiting_for_layout_change = False
|
self.waiting_for_layout_change = False
|
||||||
|
|
||||||
self.input_wait_type = DebugWaitType.IMMEDIATE
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def legacy_ui(self) -> bool:
|
def legacy_ui(self) -> bool:
|
||||||
"""Differences between UI1 and UI2."""
|
"""Differences between UI1 and UI2."""
|
||||||
|
@ -143,12 +143,6 @@ def _raw_client(request: pytest.FixtureRequest) -> Client:
|
|||||||
|
|
||||||
|
|
||||||
def _get_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
|
|
||||||
else:
|
|
||||||
interact = os.environ.get("INTERACT") == "1"
|
interact = os.environ.get("INTERACT") == "1"
|
||||||
path = os.environ.get("TREZOR_PATH")
|
path = os.environ.get("TREZOR_PATH")
|
||||||
if path:
|
if path:
|
||||||
|
@ -50,7 +50,6 @@ class BackgroundDeviceHandler:
|
|||||||
self.client = client
|
self.client = client
|
||||||
self.client.ui = NullUI # type: ignore [NullUI is OK UI]
|
self.client.ui = NullUI # type: ignore [NullUI is OK UI]
|
||||||
self.client.watch_layout(True)
|
self.client.watch_layout(True)
|
||||||
self.client.debug.input_wait_type = DebugWaitType.CURRENT_LAYOUT
|
|
||||||
|
|
||||||
def run_with_session(
|
def run_with_session(
|
||||||
self,
|
self,
|
||||||
|
Loading…
Reference in New Issue
Block a user