1
0
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:
Pavol Rusnak 2018-10-22 15:41:27 +02:00
parent 1397c3b4d9
commit 43b7ca4fd6
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 6 additions and 6 deletions

View File

@ -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";

View File

@ -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),
): ):

View File

@ -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),
): ):

View File

@ -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),
): ):