Adapt test to provide certificate APDU
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user