From eee02dd3f84c3a3c237447aa76b3e499dbaa807c Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 27 Aug 2019 14:48:16 +0200 Subject: [PATCH] tests: make mnemonics top-level --- tests/device_tests/common.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tests/device_tests/common.py b/tests/device_tests/common.py index 09276ed0d1..43ff9f0863 100644 --- a/tests/device_tests/common.py +++ b/tests/device_tests/common.py @@ -19,15 +19,20 @@ from trezorlib.messages.PassphraseSourceType import HOST as PASSPHRASE_ON_HOST from . import conftest +# fmt: off +# 1 2 3 4 5 6 7 8 9 10 11 12 +MNEMONIC12 = "alcohol woman abuse must during monitor noble actual mixed trade anger aisle" +MNEMONIC18 = "owner little vague addict embark decide pink prosper true fork panda embody mixture exchange choose canoe electric jewel" +MNEMONIC24 = "dignity pass list indicate nasty swamp pool script soccer toe leaf photo multiply desk host tomato cradle drill spread actor shine dismiss champion exotic" +MNEMONIC_ALLALLALL = " ".join(["all"] * 12) +# fmt: on + class TrezorTest: - # fmt: off - # 1 2 3 4 5 6 7 8 9 10 11 12 - mnemonic12 = "alcohol woman abuse must during monitor noble actual mixed trade anger aisle" - mnemonic18 = "owner little vague addict embark decide pink prosper true fork panda embody mixture exchange choose canoe electric jewel" - mnemonic24 = "dignity pass list indicate nasty swamp pool script soccer toe leaf photo multiply desk host tomato cradle drill spread actor shine dismiss champion exotic" - mnemonic_all = " ".join(["all"] * 12) - # fmt: on + mnemonic12 = MNEMONIC12 + mnemonic18 = MNEMONIC18 + mnemonic24 = MNEMONIC24 + mnemonic_all = MNEMONIC_ALLALLALL pin4 = "1234" pin6 = "789456"