Ragger tests
@@ -5,27 +5,24 @@ from typing import Union
|
||||
|
||||
|
||||
class SettingID(Enum):
|
||||
BLIND_SIGNING = auto()
|
||||
DEBUG_DATA = auto()
|
||||
NONCE = auto()
|
||||
VERBOSE_EIP712 = auto()
|
||||
VERBOSE_ENS = auto()
|
||||
VERBOSE_EIP712 = auto()
|
||||
NONCE = auto()
|
||||
DEBUG_DATA = auto()
|
||||
|
||||
|
||||
def get_device_settings(device: str) -> list[SettingID]:
|
||||
if device == "nanos":
|
||||
return [
|
||||
SettingID.BLIND_SIGNING,
|
||||
SettingID.NONCE,
|
||||
SettingID.DEBUG_DATA,
|
||||
SettingID.NONCE
|
||||
]
|
||||
if device in ("nanox", "nanosp", "stax", "flex"):
|
||||
return [
|
||||
SettingID.BLIND_SIGNING,
|
||||
SettingID.DEBUG_DATA,
|
||||
SettingID.NONCE,
|
||||
SettingID.VERBOSE_ENS,
|
||||
SettingID.VERBOSE_EIP712,
|
||||
SettingID.VERBOSE_ENS
|
||||
SettingID.NONCE,
|
||||
SettingID.DEBUG_DATA,
|
||||
]
|
||||
return []
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
BIN
tests/ragger/snapshots/flex/test_blind_sign_rejected/00000.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
BIN
tests/ragger/snapshots/flex/test_blind_sign_signed/00000.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
tests/ragger/snapshots/flex/test_blind_sign_signed/00001.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
tests/ragger/snapshots/flex/test_blind_sign_signed/00002.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
BIN
tests/ragger/snapshots/flex/test_blind_sign_signed/00005.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 12 KiB |
BIN
tests/ragger/snapshots/nanos/test_blind_sign_rejected/00000.png
Normal file
|
After Width: | Height: | Size: 462 B |
BIN
tests/ragger/snapshots/nanos/test_blind_sign_rejected/00001.png
Normal file
|
After Width: | Height: | Size: 359 B |
BIN
tests/ragger/snapshots/nanos/test_blind_sign_rejected/00002.png
Normal file
|
After Width: | Height: | Size: 471 B |
BIN
tests/ragger/snapshots/nanos/test_blind_sign_rejected/00003.png
Normal file
|
After Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 349 B |
BIN
tests/ragger/snapshots/nanos/test_blind_sign_signed/00000.png
Normal file
|
After Width: | Height: | Size: 462 B |
BIN
tests/ragger/snapshots/nanos/test_blind_sign_signed/00001.png
Normal file
|
After Width: | Height: | Size: 359 B |
BIN
tests/ragger/snapshots/nanos/test_blind_sign_signed/00002.png
Normal file
|
After Width: | Height: | Size: 471 B |
|
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B |
|
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 428 B |
|
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 296 B |
|
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 430 B |
|
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 464 B |
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B |
BIN
tests/ragger/snapshots/nanos/test_blind_sign_signed/00012.png
Normal file
|
After Width: | Height: | Size: 491 B |
|
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 414 B |
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 349 B |
|
Before Width: | Height: | Size: 399 B |
|
Before Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 376 B |
|
Before Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 448 B |
|
Before Width: | Height: | Size: 462 B |
|
Before Width: | Height: | Size: 318 B |
|
Before Width: | Height: | Size: 333 B |
|
Before Width: | Height: | Size: 367 B |
|
Before Width: | Height: | Size: 399 B |
|
Before Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 376 B |
|
Before Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 448 B |
|
Before Width: | Height: | Size: 462 B |
|
Before Width: | Height: | Size: 318 B |
|
Before Width: | Height: | Size: 367 B |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 348 B |
|
Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 380 B |
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 341 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 445 B |
|
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
|
Before Width: | Height: | Size: 322 B After Width: | Height: | Size: 322 B |
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 341 B |
|
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 360 B |
|
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 447 B |
|
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 365 B |
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 341 B |
|
After Width: | Height: | Size: 462 B |
|
After Width: | Height: | Size: 359 B |
|
After Width: | Height: | Size: 471 B |
|
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 444 B |