fix(tests): fix trimming of fixture names to avoid collisions

pull/45/head
Pavol Rusnak 3 years ago committed by Tomas Susanka
parent fd4d6f9749
commit 060df07272

@ -26,7 +26,9 @@ def get_test_name(node_id):
# remove ::TestClass:: if present because it is usually the same as the test file name
new_name = re.sub(r"::.*?::", "-", new_name)
new_name = new_name.replace("/", "-") # in case there is "/"
return new_name[:100]
if len(new_name) <= 100:
return new_name
return new_name[:91] + "-" + hashlib.sha256(new_name.encode()).hexdigest()[:8]
def _process_recorded(screen_path, test_name):

@ -94,8 +94,8 @@
"test_msg_backup_device.py::test_interrupt_backup_fails": "8dc5c385fec6dd871a141e2efd83f767a5f3da85b2857c8ac27e054f9fa4b384",
"test_msg_backup_device.py::test_no_backup_fails": "93039a9472cfc9058563bd56e4a3dbe2e41af64744a61f6ee3255a04bd3a9366",
"test_msg_backup_device.py::test_no_backup_show_entropy_fails": "14fcdd2ded299ca099a35966cc9f21204b31de8d6bab9ec91cb64537bd70440c",
"test_msg_binance_get_address.py::test_binance_get_address[m-44'-714'-0'-0-0-bnb1hgm0p7khfk85zpz5v0j8": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_binance_get_address.py::test_binance_get_address[m-44'-714'-0'-0-1-bnb1egswqkszzfc2uq78zjsl": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_binance_get_address.py::test_binance_get_address[m-44'-714'-0'-0-0-bnb1hgm0p7khfk8-f1c0681a": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_binance_get_address.py::test_binance_get_address[m-44'-714'-0'-0-1-bnb1egswqkszzfc-ad64f47f": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_binance_get_public_key.py::test_binance_get_public_key": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_binance_sign_tx.py::test_binance_sign_message[message0-expected_response0]": "298f7aa2628102f9347a0918e1efb6028101ce061d1477615f0b68ba78467864",
"test_msg_binance_sign_tx.py::test_binance_sign_message[message1-expected_response1]": "7b8bbe5ba7d7b07c95065608fb1cf9aeafcb3f9671835a6e5e5a6997ff4ff99b",
@ -130,22 +130,22 @@
"test_msg_eos_signtx.py-test_eos_signtx_updateauth": "30dd14edc4daa28447f9be08dd6caea3a0e96251f2bc60a171e9f5d38d97d4c5",
"test_msg_eos_signtx.py-test_eos_signtx_vote": "c9b68c2fecd51c5c00a40ca88aeb7af791d6d3670bdad423ad3b47b6dd663ed5",
"test_msg_eos_signtx.py-test_eos_signtx_vote_proxy": "4a831fc808e4b32fe9c8a5bed11cbbeb8b623391e9c603e61fbf352152f63fd9",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-5718350'-0'-0-0-0xe432a7533D689ceed0": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-60'-0'-0-0-0x73d0385F4d8E00C5e6504C6": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-60'-0'-0-100-0x1e6E3708a059aEa1241a8": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-60'-0'-0xdA0b608bdb1a4A154325C854607": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-60'-100'-0x93Fb0Ff84F5BB6E7b6a9835C7": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-6060'-0'-0-0-0xA26a450ef46a5f11a510e": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-61'-0'-0-0-0xF410e37E9C8BCf8CF319c84": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-5718350'-0'-0-0-0xe432a7533-782104b7": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-60'-0'-0-0-0x73d0385F4d8E00-2ba8b7b8": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-60'-0'-0-100-0x1e6E3708a059-df83b1d6": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-60'-0'-0xdA0b608bdb1a4A1543-a3c0a7fb": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-60'-100'-0x93Fb0Ff84F5BB6E7-3ec72a77": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-6060'-0'-0-0-0xA26a450ef46a-7bdafd6d": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getaddress.py::test_ethereum_getaddress[m-44'-61'-0'-0-0-0xF410e37E9C8BCf-def83718": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_getpublickey.py-test_ethereum_getpublickey": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_signmessage.py::test_sign[MsgLenIs10-0c8eb57decbb95d2a783e69d444b3747c49ebcceb14f2": "4b82bd4b8f1805f56e2e1d8bdf6c66f2653cd63f7ec80a5cdd5402b4b766be57",
"test_msg_ethereum_signmessage.py::test_sign[MsgLenIs11!-5f1ab8940c2137baf69a2b94f55f0f7e53a022b9e363": "af829dc1d5a1f8a21c6d7ca275c4ddd86d3e3032ba2213d439fef29025ebd156",
"test_msg_ethereum_signmessage.py::test_sign[MsgLenIs9-495b5b021517cd01cb05f02dfb6a1f79a8d9e4f82e8fb0": "abd359c13dd66751e6332179ed143b7945ac5ee67e1e21db1d2b8e06197f61d9",
"test_msg_ethereum_signmessage.py::test_sign[This is an example of a signed message.-af4eac50f21acc6d": "d24223d35e8b54fb54a51857c44e6b60f858057db428a6ff4cc0d4905c3ca877",
"test_msg_ethereum_signmessage.py::test_sign[This message has length 100!!!!!!!!!!!!!!!!!!!!!!!!!!!!!": "7ed4b4879fc37ee56d313399494458eadbf5766cbca9eb3f95097e94b2b4fbe3",
"test_msg_ethereum_signmessage.py::test_sign[This message has length 101!!!!!!!!!!!!!!!!!!!!!!!!!!!!!": "49b7c6b607393c1f4e0bcd929eab3a96afb83934b19266279ba4b35765fb770b",
"test_msg_ethereum_signmessage.py::test_sign[This message has length 99!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!": "982ec03750c783b1fe4f8f552d9917c4c0fee4ac6982dc044d8c4369f6eceffd",
"test_msg_ethereum_signmessage.py::test_sign[VeryLongMessage!VeryLongMessage!VeryLongMessage!VeryLong": "0eff9625029b7e95d772ee60f408530cfe7c8168e963fd6a8c9349e003c53469",
"test_msg_ethereum_signmessage.py::test_sign[MsgLenIs10-0c8eb57decbb95d2a783e69d444b3747c49e-b8fcf517": "4b82bd4b8f1805f56e2e1d8bdf6c66f2653cd63f7ec80a5cdd5402b4b766be57",
"test_msg_ethereum_signmessage.py::test_sign[MsgLenIs11!-5f1ab8940c2137baf69a2b94f55f0f7e53a-5fc969e9": "af829dc1d5a1f8a21c6d7ca275c4ddd86d3e3032ba2213d439fef29025ebd156",
"test_msg_ethereum_signmessage.py::test_sign[MsgLenIs9-495b5b021517cd01cb05f02dfb6a1f79a8d9e-72cb8dee": "abd359c13dd66751e6332179ed143b7945ac5ee67e1e21db1d2b8e06197f61d9",
"test_msg_ethereum_signmessage.py::test_sign[This is an example of a signed message.-af4eac5-c7c58c05": "d24223d35e8b54fb54a51857c44e6b60f858057db428a6ff4cc0d4905c3ca877",
"test_msg_ethereum_signmessage.py::test_sign[This message has length 100!!!!!!!!!!!!!!!!!!!!-247a0b96": "7ed4b4879fc37ee56d313399494458eadbf5766cbca9eb3f95097e94b2b4fbe3",
"test_msg_ethereum_signmessage.py::test_sign[This message has length 101!!!!!!!!!!!!!!!!!!!!-ea9f1848": "49b7c6b607393c1f4e0bcd929eab3a96afb83934b19266279ba4b35765fb770b",
"test_msg_ethereum_signmessage.py::test_sign[This message has length 99!!!!!!!!!!!!!!!!!!!!!-032eb8ce": "982ec03750c783b1fe4f8f552d9917c4c0fee4ac6982dc044d8c4369f6eceffd",
"test_msg_ethereum_signmessage.py::test_sign[VeryLongMessage!VeryLongMessage!VeryLongMessage-b48bd842": "0eff9625029b7e95d772ee60f408530cfe7c8168e963fd6a8c9349e003c53469",
"test_msg_ethereum_signtx.py-test_ethereum_sanity_checks": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_ethereum_signtx.py-test_ethereum_signtx_data": "5d5df0ea6a141aa6b79717d944bce36dbc0966299e7283629c7354cef4bf6b50",
"test_msg_ethereum_signtx.py-test_ethereum_signtx_known_erc20_token": "2cda05063110c8eda4b7c77f4ad632cfeb76649eba0d1733be125890c9aab937",
@ -174,7 +174,7 @@
"test_msg_getaddress_segwit_native.py-test_show_segwit_altcoin": "5a80508a71a9ef64f94762b07636f90e464832f0f4a3102af8fa1a8c69e94586",
"test_msg_getaddress_show.py::test_show[m-44h-0h-12h-0-0-0-1FM6Kz3oT3GoGv65jNpU8AFFun8nHAXrPk]": "098da5c20c502a8cb755cf81a82bf914ab941254f1e3d003567ac598a53384bf",
"test_msg_getaddress_show.py::test_show[m-49h-0h-12h-0-0-4-3HfEUkuwmtZ87XzowkiD5nMp5Q3hqKXZ2i]": "062e352dfa3e1944a7e293c1ae23fbce6f0923fe9168dfcc67c101a51db37a47",
"test_msg_getaddress_show.py::test_show[m-84h-0h-12h-0-0-3-bc1qduvap743hcl7twn8u6f9l0u8y7x83965xy0raj": "b72f75dc5f8f4e7ff2254c20ba8006425920267d5b7d3c1dccbe31e5b0f64ce6",
"test_msg_getaddress_show.py::test_show[m-84h-0h-12h-0-0-3-bc1qduvap743hcl7twn8u6f9l0u8y7x83-f4d2fe44": "b72f75dc5f8f4e7ff2254c20ba8006425920267d5b7d3c1dccbe31e5b0f64ce6",
"test_msg_getaddress_show.py::test_show_multisig_15": "28693cd1a8581f13128ebf4961195873cb044171baef85a3802f90999f828a1a",
"test_msg_getaddress_show.py::test_show_multisig_3": "52e77c417eab7ab63b4e27f80e2d8cae54f638ba5851f19c5941f41de3e9d00e",
"test_msg_getaddress_show.py::test_show_multisig_xpubs": "81612fcacbf8460bfae23e328f4091b932d89d203344bf5c95db8f33fb378e7a",
@ -258,7 +258,7 @@
"test_msg_recoverydevice_slip39_advanced.py::test_noabort": "78a8cc92a79f90b45c3e14f01c1c57ba0fbef63438c9abe9cd1feb35b0e03c0a",
"test_msg_recoverydevice_slip39_advanced.py::test_same_share": "1ed63220ab59dd2feab4a42ffa565a9ff50980a72da022c35f6134869534c0fe",
"test_msg_recoverydevice_slip39_advanced.py::test_secret[shares0-c2d2e26ad06023c60145f150abe2dd2b]": "c69e74416015afdeb589d257511c3a8a693c1f584717d948f93a3250d6713ef6",
"test_msg_recoverydevice_slip39_advanced.py::test_secret[shares1-c41d5cf80fed71a008a3a0ae0458ff0c6d62": "9131fad9e499bb4cb3ee18c5535b89647d149746464334e0854052410b6a33d8",
"test_msg_recoverydevice_slip39_advanced.py::test_secret[shares1-c41d5cf80fed71a008a3a0ae045-c5b70566": "9131fad9e499bb4cb3ee18c5535b89647d149746464334e0854052410b6a33d8",
"test_msg_recoverydevice_slip39_advanced_dryrun.py::test_2of3_dryrun": "fdf2733eac6e1cc6f5758cf599dc6a02e3000145cd83150f0727602d98744b8d",
"test_msg_recoverydevice_slip39_advanced_dryrun.py::test_2of3_invalid_seed_dryrun": "950a00e2a14070cb9c78658dd13064cf860cd125d604df242cf8a22ce9cf7a5e",
"test_msg_recoverydevice_slip39_basic.py::test_1of1": "de184147e0786f76c324019964ffebd0f170474d0e1a72b0aa120daa36c624d7",
@ -268,7 +268,7 @@
"test_msg_recoverydevice_slip39_basic.py::test_recover_with_pin_passphrase": "45330e1d06ad7b4fc5710c0cd44fdd40afd9bbb7ce1e1c291eadb0306536719a",
"test_msg_recoverydevice_slip39_basic.py::test_same_share": "3a5317f3bcf96931bb9b262f31fd3461d14560dce0a6c068e545283e9bf526a0",
"test_msg_recoverydevice_slip39_basic.py::test_secret[shares0-491b795b80fc21ccdf466c0fbc98c8fc]": "c3cbc4aa0243f89d421de05ee02a941b44e0794ae1f9ca064d7ecea6b3dd4176",
"test_msg_recoverydevice_slip39_basic.py::test_secret[shares1-b770e0da1363247652de97a39bdbf2463be0878": "c7151e24b74ddb70ce6d10459f5ba318e8a7947cbc8abecc90df97d5abdb7609",
"test_msg_recoverydevice_slip39_basic.py::test_secret[shares1-b770e0da1363247652de97a39bdbf2-2add2e1e": "c7151e24b74ddb70ce6d10459f5ba318e8a7947cbc8abecc90df97d5abdb7609",
"test_msg_recoverydevice_slip39_basic.py::test_wrong_nth_word[0]": "3164a3744b29cdd345cbae18b8963a008e89c4d4bcebe98d2c320bf714c9c299",
"test_msg_recoverydevice_slip39_basic.py::test_wrong_nth_word[1]": "b85543b48047ebb93b1b8c509d0596205d193bf99b3cd1c6650b24d97f6bd6d4",
"test_msg_recoverydevice_slip39_basic.py::test_wrong_nth_word[2]": "6fff99c5997b08bc18d6f6dbfe67a141eda00a848168af5927b46eff48e46770",
@ -378,11 +378,11 @@
"test_msg_signtx_replacement.py::test_p2pkh_fee_bump": "881f6491e9f4417cd747dda2dc0eaafdf1a4769a5e53aa303bb06547d6a9133b",
"test_msg_signtx_replacement.py::test_p2wpkh_finalize": "1147c6996c193b904b72d38def07c692cf48d7bdbe244343c9e98ee0db497d11",
"test_msg_signtx_replacement.py::test_p2wpkh_in_p2sh_remove_change": "f66437cc88d016ddb0b3fd4e6d2c6536d9a1745dfc92ce9cd334c3cbaaefb4a9",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909659-90000-02483045022100aa1b91fb25cc9a0ace4": "a5473b5f3931fb6530a991e45aa32507069a7b402878d1eda2ce6e8be1a673e1",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909718-90000-024730440220753f53049ca43d55f6563": "a5473b5f3931fb6530a991e45aa32507069a7b402878d1eda2ce6e8be1a673e1",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909800-89859-0248304502210097a42b35d3d16fa1696": "a5473b5f3931fb6530a991e45aa32507069a7b402878d1eda2ce6e8be1a673e1",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909859-89800-02483045022100af3a874c966ee595321": "fa89cef11f68c2c856b441728f70a86d4c9419cf9e327cfd3330eafb8790bc2d",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909859-89859-02483045022100eb74abb36f317d707c3": "a5473b5f3931fb6530a991e45aa32507069a7b402878d1eda2ce6e8be1a673e1",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909659-90000-02483045022100aa1b91fb25-124c0968": "a5473b5f3931fb6530a991e45aa32507069a7b402878d1eda2ce6e8be1a673e1",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909718-90000-024730440220753f53049ca4-2253fa0b": "a5473b5f3931fb6530a991e45aa32507069a7b402878d1eda2ce6e8be1a673e1",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909800-89859-0248304502210097a42b35d3-89bd0d1d": "a5473b5f3931fb6530a991e45aa32507069a7b402878d1eda2ce6e8be1a673e1",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909859-89800-02483045022100af3a874c96-7f9eee73": "fa89cef11f68c2c856b441728f70a86d4c9419cf9e327cfd3330eafb8790bc2d",
"test_msg_signtx_replacement.py::test_p2wpkh_payjoin[19909859-89859-02483045022100eb74abb36f-42ad4639": "a5473b5f3931fb6530a991e45aa32507069a7b402878d1eda2ce6e8be1a673e1",
"test_msg_signtx_replacement.py::test_tx_meld": "5250c11a75781fa1c845f7b405b7808c5b7dce3e8405fe69096db5c723457f48",
"test_msg_signtx_segwit.py-test_attack_change_input_address": "5ae71202c062ef7942626a80a4ceeb8d8c4ea5065a97f0de6a97505e9cb82c2c",
"test_msg_signtx_segwit.py-test_attack_mixed_inputs": "f127a4766b23d9b6dfe0c41f9cf1ed13c0a883ea4e92e55961bcaf44bd152c02",

Loading…
Cancel
Save