Adapt test to provide certificate APDU

This commit is contained in:
Charles-Edouard de la Vergne
2024-06-11 10:59:14 +02:00
parent 1a555d0996
commit 338f7cef45
4 changed files with 5 additions and 3 deletions

View File

@@ -5,7 +5,6 @@ from ragger.backend import BackendInterface
from client.client import EthAppClient, StatusWord
def test_provide_erc20_token(backend: BackendInterface):
app_client = EthAppClient(backend)
@@ -21,7 +20,7 @@ def test_provide_erc20_token_error(backend: BackendInterface):
addr = bytes.fromhex("e41d2489571d322189246dafa5ebde1f4699f498")
sign = bytes.fromhex("deadbeef")
with pytest.raises(ExceptionRAPDU) as e:
with pytest.raises(ExceptionRAPDU) as err:
app_client.provide_token_metadata("ZRX", addr, 18, 1, sign)
assert e.value.status == StatusWord.INVALID_DATA
assert err.value.status == StatusWord.INVALID_DATA