mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
tests/stellar: trezor core currently throws Firmware err
This commit is contained in:
parent
015d72102d
commit
ebe41c69f8
@ -49,5 +49,9 @@ class TestMsgStellarGetAddress(TrezorTest):
|
|||||||
with pytest.raises(CallException) as exc:
|
with pytest.raises(CallException) as exc:
|
||||||
self.client.stellar_get_address(parse_path('m/0/1'))
|
self.client.stellar_get_address(parse_path('m/0/1'))
|
||||||
|
|
||||||
assert exc.value.args[0] == proto.FailureType.ProcessError
|
if TREZOR_VERSION == 1:
|
||||||
assert exc.value.args[1].endswith('Failed to derive private key')
|
assert exc.value.args[0] == proto.FailureType.ProcessError
|
||||||
|
assert exc.value.args[1].endswith('Failed to derive private key')
|
||||||
|
else:
|
||||||
|
assert exc.value.args[0] == proto.FailureType.FirmwareError
|
||||||
|
assert exc.value.args[1].endswith('Firmware error')
|
||||||
|
@ -41,5 +41,9 @@ class TestMsgStellarGetPublicKey(TrezorTest):
|
|||||||
with pytest.raises(CallException) as exc:
|
with pytest.raises(CallException) as exc:
|
||||||
self.client.stellar_get_public_key(parse_path('m/0/1'))
|
self.client.stellar_get_public_key(parse_path('m/0/1'))
|
||||||
|
|
||||||
assert exc.value.args[0] == proto.FailureType.ProcessError
|
if TREZOR_VERSION == 1:
|
||||||
assert exc.value.args[1].endswith('Failed to derive private key')
|
assert exc.value.args[0] == proto.FailureType.ProcessError
|
||||||
|
assert exc.value.args[1].endswith('Failed to derive private key')
|
||||||
|
else:
|
||||||
|
assert exc.value.args[0] == proto.FailureType.FirmwareError
|
||||||
|
assert exc.value.args[1].endswith('Firmware error')
|
||||||
|
Loading…
Reference in New Issue
Block a user