mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-16 21:20:43 +02:00
test: Use 4 spaces for indentation
This commit is contained in:
parent
8ae4ba481c
commit
faeff57709
@ -18,7 +18,7 @@ def perform_pre_checks():
|
|||||||
sys.exit(int(mock_result[0]))
|
sys.exit(int(mock_result[0]))
|
||||||
|
|
||||||
def enumerate(args):
|
def enumerate(args):
|
||||||
sys.stdout.write(json.dumps([{"fingerprint": "00000001", "type": "trezor", "model": "trezor_t"}, {"fingerprint": "00000002"}]))
|
sys.stdout.write(json.dumps([{"fingerprint": "00000001", "type": "trezor", "model": "trezor_t"}, {"fingerprint": "00000002"}]))
|
||||||
|
|
||||||
def getdescriptors(args):
|
def getdescriptors(args):
|
||||||
xpub = "tpubD6NzVbkrYhZ4WaWSyoBvQwbpLkojyoTZPRsgXELWz3Popb3qkjcJyJUGLnL4qHHoQvao8ESaAstxYSnhyswJ76uZPStJRJCTKvosUCJZL5B"
|
xpub = "tpubD6NzVbkrYhZ4WaWSyoBvQwbpLkojyoTZPRsgXELWz3Popb3qkjcJyJUGLnL4qHHoQvao8ESaAstxYSnhyswJ76uZPStJRJCTKvosUCJZL5B"
|
||||||
@ -93,7 +93,7 @@ parser_signtx.set_defaults(func=signtx)
|
|||||||
if not sys.stdin.isatty():
|
if not sys.stdin.isatty():
|
||||||
buffer = sys.stdin.read()
|
buffer = sys.stdin.read()
|
||||||
if buffer and buffer.rstrip() != "":
|
if buffer and buffer.rstrip() != "":
|
||||||
sys.argv.extend(buffer.rstrip().split(" "))
|
sys.argv.extend(buffer.rstrip().split(" "))
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class ImportDescriptorsTest(BitcoinTestFramework):
|
|||||||
result = wrpc.importdescriptors([req])
|
result = wrpc.importdescriptors([req])
|
||||||
observed_warnings = []
|
observed_warnings = []
|
||||||
if 'warnings' in result[0]:
|
if 'warnings' in result[0]:
|
||||||
observed_warnings = result[0]['warnings']
|
observed_warnings = result[0]['warnings']
|
||||||
assert_equal("\n".join(sorted(warnings)), "\n".join(sorted(observed_warnings)))
|
assert_equal("\n".join(sorted(warnings)), "\n".join(sorted(observed_warnings)))
|
||||||
assert_equal(result[0]['success'], success)
|
assert_equal(result[0]['success'], success)
|
||||||
if error_code is not None:
|
if error_code is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user