doc: test: suggest multi-line imports in functional test style guide

This commit is contained in:
Sebastian Falbesoner
2022-08-09 18:04:20 +02:00
parent c012875b9d
commit 4edc689382
2 changed files with 12 additions and 3 deletions

View File

@@ -14,8 +14,15 @@ is testing and *how* it's being tested
from collections import defaultdict
# Avoid wildcard * imports
from test_framework.blocktools import (create_block, create_coinbase)
from test_framework.messages import CInv, MSG_BLOCK
# Use lexicographically sorted multi-line imports
from test_framework.blocktools import (
create_block,
create_coinbase,
)
from test_framework.messages import (
CInv,
MSG_BLOCK,
)
from test_framework.p2p import (
P2PInterface,
msg_block,