1
- from sys import platform
2
-
3
1
import pytest
4
2
5
3
from starknet_py .common import create_sierra_compiled_contract
20
18
from starknet_py .tests .e2e .fixtures .misc import load_contract
21
19
22
20
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
28
23
def test_init_with_invalid_derivation_path ():
29
24
with pytest .raises (ValueError , match = "Empty derivation path" ):
30
25
LedgerSigner (derivation_path_str = "" , chain_id = StarknetChainId .SEPOLIA )
@@ -81,10 +76,8 @@ def test_init_with_invalid_derivation_path():
81
76
),
82
77
],
83
78
)
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
88
81
def test_sign_transaction (transaction ):
89
82
# docs: start
90
83
@@ -104,10 +97,8 @@ def test_sign_transaction(transaction):
104
97
assert all (i != 0 for i in signature )
105
98
106
99
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
111
102
def test_create_account_with_ledger_signer ():
112
103
# pylint: disable=unused-variable
113
104
signer = LedgerSigner (
@@ -141,10 +132,8 @@ async def _get_account_balance_strk(client: FullNodeClient, address: int):
141
132
142
133
143
134
@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
148
137
async def test_deploy_account_and_transfer (client ):
149
138
signer = LedgerSigner (
150
139
derivation_path_str = "m/2645'/1195502025'/1470455285'/0'/0'/0" ,
0 commit comments