Use sync or async exchange calls in ethereum client

This commit is contained in:
Francois Beutin
2024-03-27 11:16:19 +01:00
parent a84d4f502d
commit 8d9e79ba0a
6 changed files with 104 additions and 139 deletions

View File

@@ -52,15 +52,12 @@ def test_get_pk_rejected(firmware: Firmware,
navigator: Navigator):
app_client = EthAppClient(backend)
try:
with pytest.raises(ExceptionRAPDU) as e:
with app_client.get_public_addr():
navigator.navigate_and_compare(ROOT_SNAPSHOT_PATH,
"get_pk_rejected",
get_moves(firmware, navigator, reject=True))
except ExceptionRAPDU as e:
assert e.status == StatusWord.CONDITION_NOT_SATISFIED
else:
assert False # An exception should have been raised
assert e.value.status == StatusWord.CONDITION_NOT_SATISFIED
def test_get_pk(firmware: Firmware,