mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-16 17:42:02 +00:00
tests/device: remove test_expected_responses
This commit is contained in:
parent
49727740bc
commit
5717e647ed
@ -31,15 +31,6 @@ class TestProtectCall:
|
|||||||
res = btc.get_address(client, "Testnet", [0])
|
res = btc.get_address(client, "Testnet", [0])
|
||||||
assert res == "mndoQDWatQhfeQbprzZxD43mZ75Z94D6vz"
|
assert res == "mndoQDWatQhfeQbprzZxD43mZ75Z94D6vz"
|
||||||
|
|
||||||
@pytest.mark.setup_client(pin="1234", passphrase=True)
|
|
||||||
def test_expected_responses(self, client):
|
|
||||||
with client:
|
|
||||||
# Scenario 4 - Received what expected
|
|
||||||
client.set_expected_responses(
|
|
||||||
[proto.PinMatrixRequest(), proto.PassphraseRequest(), proto.Address()]
|
|
||||||
)
|
|
||||||
self._some_protected_call(client)
|
|
||||||
|
|
||||||
def test_no_protection(self, client):
|
def test_no_protection(self, client):
|
||||||
with client:
|
with client:
|
||||||
assert client.debug.read_pin()[0] is None
|
assert client.debug.read_pin()[0] is None
|
||||||
|
Loading…
Reference in New Issue
Block a user