1- from sys import platform
2-
31import pytest
42
53from starknet_py .common import create_sierra_compiled_contract
2018from starknet_py .tests .e2e .fixtures .misc import load_contract
2119
2220
23- # TODO (#1425): Currently Ledger tests are skipped on Windows due to different Speculos setup.
24- @pytest .mark .skipif (
25- platform == "win32" ,
26- reason = "Testing Ledger is skipped on Windows due to different Speculos setup." ,
27- )
21+ # TODO (#1476): Should be re-enabled once Ledger signer is updated with new APDU spec.
22+ @pytest .mark .skip
2823def test_init_with_invalid_derivation_path ():
2924 with pytest .raises (ValueError , match = "Empty derivation path" ):
3025 LedgerSigner (derivation_path_str = "" , chain_id = StarknetChainId .SEPOLIA )
@@ -81,10 +76,8 @@ def test_init_with_invalid_derivation_path():
8176 ),
8277 ],
8378)
84- @pytest .mark .skipif (
85- platform == "win32" ,
86- reason = "Testing Ledger is skipped on Windows due to different Speculos setup." ,
87- )
79+ # TODO (#1476): Should be re-enabled once Ledger signer is updated with new APDU spec.
80+ @pytest .mark .skip
8881def test_sign_transaction (transaction ):
8982 # docs: start
9083
@@ -104,10 +97,8 @@ def test_sign_transaction(transaction):
10497 assert all (i != 0 for i in signature )
10598
10699
107- @pytest .mark .skipif (
108- platform == "win32" ,
109- reason = "Testing Ledger is skipped on Windows due to different Speculos setup." ,
110- )
100+ # TODO (#1476): Should be re-enabled once Ledger signer is updated with new APDU spec.
101+ @pytest .mark .skip
111102def test_create_account_with_ledger_signer ():
112103 # pylint: disable=unused-variable
113104 signer = LedgerSigner (
@@ -141,10 +132,8 @@ async def _get_account_balance_strk(client: FullNodeClient, address: int):
141132
142133
143134@pytest .mark .asyncio
144- @pytest .mark .skipif (
145- platform == "win32" ,
146- reason = "Testing Ledger is skipped on Windows due to different Speculos setup." ,
147- )
135+ # TODO (#1476): Should be re-enabled once Ledger signer is updated with new APDU spec.
136+ @pytest .mark .skip
148137async def test_deploy_account_and_transfer (client ):
149138 signer = LedgerSigner (
150139 derivation_path_str = "m/2645'/1195502025'/1470455285'/0'/0'/0" ,
0 commit comments