mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 03:53:22 +02:00
doc: test: suggest multi-line imports in functional test style guide
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user