Skip to content

Commit 35a2da6

Browse files
committed
fix: correct indentation in regression tests
1 parent 27aa8cb commit 35a2da6

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

tests/test_msg_solana_signtx.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,11 @@ def test_solana_sign_token_transfer(self):
274274
raw_tx = self._build_tx(
275275
from_pubkey, [to_account, from_pubkey], self.TOKEN_PROGRAM, instr_data
276276
)
277-
with pytest.raises(CallException) as exc:
278-
self.client.call(messages.SolanaSignTx(
279-
address_n=parse_path("m/44'/501'/0'/0'"), raw_tx=raw_tx))
280-
self.assertIn("policy", str(exc.value))
277+
with pytest.raises(CallException) as exc:
278+
self.client.call(messages.SolanaSignTx(
279+
address_n=parse_path("m/44'/501'/0'/0'"), raw_tx=raw_tx))
280+
self.assertIn("policy", str(exc.value))
281+
281282
def test_solana_sign_token_approve(self):
282283
"""Unchecked SPL Approve is opaque because no mint is signed."""
283284
self.requires_fullFeature()

tests/test_sign_typed_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_ethereum_sign_typed_data_hash(self):
3838
self.client.apply_policy("AdvancedMode", 1)
3939
fixture_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
4040
'sign_typed_data.json')
41-
with open(fixture_path, encoding="utf-8") as f:
41+
with open(fixture_path, encoding="utf-8") as f:
4242
txtests = json.load(f)
4343

4444
for test in txtests['tests']:

tests/test_verify_typed_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_verify(self):
6969
self.setup_mnemonic_allallall()
7070
fixture_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
7171
'eip712tests.json')
72-
with open(fixture_path, encoding="utf-8") as f:
72+
with open(fixture_path, encoding="utf-8") as f:
7373
txtests = json.load(f)
7474

7575
for test in txtests['tests']:

0 commit comments

Comments
 (0)