mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 21:22:10 +00:00
tests: fix device_handler to be able to enter passphrase via clicks
note: this is currently broken due to #922
This commit is contained in:
parent
2c4ecff0a4
commit
8a7c6ce34d
@ -1,5 +1,6 @@
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
|
||||
from trezorlib.client import PASSPHRASE_ON_DEVICE
|
||||
from trezorlib.transport import udp
|
||||
|
||||
udp.SOCKET_TIMEOUT = 0.1
|
||||
@ -15,8 +16,11 @@ class NullUI:
|
||||
raise NotImplementedError("NullUI should not be used with T1")
|
||||
|
||||
@staticmethod
|
||||
def get_passphrase():
|
||||
raise NotImplementedError("NullUI should not be used with T1")
|
||||
def get_passphrase(available_on_device=False):
|
||||
if available_on_device:
|
||||
return PASSPHRASE_ON_DEVICE
|
||||
else:
|
||||
raise NotImplementedError("NullUI should not be used with T1")
|
||||
|
||||
|
||||
class BackgroundDeviceHandler:
|
||||
|
Loading…
Reference in New Issue
Block a user