1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 05:03:07 +00:00

tests: fix signature of device.recover in expect-to-fail tests

This commit is contained in:
matejcik 2018-10-03 14:19:53 +02:00
parent 1d3fa77ab6
commit 8618f44272
2 changed files with 20 additions and 4 deletions

View File

@ -204,5 +204,13 @@ class TestMsgRecoverydevice(TrezorTest):
def test_already_initialized(self): def test_already_initialized(self):
self.setup_mnemonic_nopin_nopassphrase() self.setup_mnemonic_nopin_nopassphrase()
with pytest.raises(Exception): with pytest.raises(RuntimeError):
device.recover(self.client, 12, False, False, "label", "english") device.recover(
self.client,
12,
False,
False,
"label",
"english",
self.client.mnemonic_callback,
)

View File

@ -109,5 +109,13 @@ class TestMsgRecoverydeviceT2(TrezorTest):
def test_already_initialized(self): def test_already_initialized(self):
self.setup_mnemonic_nopin_nopassphrase() self.setup_mnemonic_nopin_nopassphrase()
with pytest.raises(Exception): with pytest.raises(RuntimeError):
device.recover(self.client, 12, False, False, "label", "english") device.recover(
self.client,
12,
False,
False,
"label",
"english",
self.client.mnemonic_callback,
)