EIP-712 Ragger tests snapshots handling

Also moved snapshots root path to a centralized/common file
This commit is contained in:
Alexandre Paillier
2024-01-30 11:47:44 +01:00
parent d24d630541
commit c8c6b9a2d1
5 changed files with 23 additions and 14 deletions

View File

@@ -12,9 +12,9 @@ from ledger_app_clients.ethereum.utils import get_selector_from_data, recover_tr
from web3 import Web3
import json
import os
from constants import ROOT_SNAPSHOT_PATH
ROOT_SCREENSHOT_PATH = Path(__file__).parent
ABIS_FOLDER = "%s/abis" % (os.path.dirname(__file__))
BIP32_PATH = "m/44'/60'/0'/0/0"
@@ -116,7 +116,7 @@ def common_test_nft(fw: Firmware,
"data": data,
}
with app_client.sign(BIP32_PATH, tx_params):
nav.navigate_and_compare(ROOT_SCREENSHOT_PATH,
nav.navigate_and_compare(ROOT_SNAPSHOT_PATH,
snapshot_test_name(plugin_name.lower(),
action.fn_name,
collec.chain_id,