mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-22 04:22:07 +00:00
tests: fix style
This commit is contained in:
parent
1397c3b4d9
commit
43b7ca4fd6
@ -1,7 +1,7 @@
|
|||||||
with import <nixpkgs> {};
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
let
|
let
|
||||||
myPython = python36.withPackages(p: [p.pytest p.black p.isort p.requests p.mnemonic p.construct p.pyblake2 p.mock p.ecdsa p.click p.libusb1 p.protobuf]);
|
myPython = python36.withPackages(p: [p.pytest p.black p.isort p.flake8 p.requests p.mnemonic p.construct p.pyblake2 p.mock p.ecdsa p.click p.libusb1 p.protobuf]);
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "python-trezor-dev";
|
name = "python-trezor-dev";
|
||||||
|
@ -96,7 +96,7 @@ class TestMsgGetaddress(TrezorTest):
|
|||||||
xpubs = []
|
xpubs = []
|
||||||
for n in map(
|
for n in map(
|
||||||
lambda index: btc.get_public_node(
|
lambda index: btc.get_public_node(
|
||||||
self.client, parse_path("44'/145'/" + str(index) + "'")
|
self.client, parse_path("44'/145'/%d'" % index)
|
||||||
),
|
),
|
||||||
range(1, 4),
|
range(1, 4),
|
||||||
):
|
):
|
||||||
|
@ -444,7 +444,7 @@ class TestMsgSigntxBch(TrezorTest):
|
|||||||
xpubs = []
|
xpubs = []
|
||||||
for n in map(
|
for n in map(
|
||||||
lambda index: btc.get_public_node(
|
lambda index: btc.get_public_node(
|
||||||
self.client, parse_path("44'/145'/" + str(index) + "'")
|
self.client, parse_path("44'/145'/%d'" % index)
|
||||||
),
|
),
|
||||||
range(1, 4),
|
range(1, 4),
|
||||||
):
|
):
|
||||||
@ -545,7 +545,7 @@ class TestMsgSigntxBch(TrezorTest):
|
|||||||
xpubs = []
|
xpubs = []
|
||||||
for n in map(
|
for n in map(
|
||||||
lambda index: btc.get_public_node(
|
lambda index: btc.get_public_node(
|
||||||
self.client, parse_path("44'/145'/" + str(index) + "'")
|
self.client, parse_path("44'/145'/%d'" % index)
|
||||||
),
|
),
|
||||||
range(1, 4),
|
range(1, 4),
|
||||||
):
|
):
|
||||||
|
@ -234,13 +234,13 @@ class TestMsgSigntxBitcoinGold(TrezorTest):
|
|||||||
debug_processor=attack_processor,
|
debug_processor=attack_processor,
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_send_bch_multisig_change(self):
|
def test_send_btg_multisig_change(self):
|
||||||
self.setup_mnemonic_allallall()
|
self.setup_mnemonic_allallall()
|
||||||
self.client.set_tx_api(TxApiBitcoinGold)
|
self.client.set_tx_api(TxApiBitcoinGold)
|
||||||
xpubs = []
|
xpubs = []
|
||||||
for n in map(
|
for n in map(
|
||||||
lambda index: btc.get_public_node(
|
lambda index: btc.get_public_node(
|
||||||
self.client, parse_path("44'/156'/" + str(index) + "'")
|
self.client, parse_path("44'/156'/%d'" % index)
|
||||||
),
|
),
|
||||||
range(1, 4),
|
range(1, 4),
|
||||||
):
|
):
|
||||||
|
Loading…
Reference in New Issue
Block a user