Repository navigation
test(sdk): add Click CliRunner test suite for all Python SDK CLI commands (#17181) - #8674
Closed
satoshinakamoto666666 wants to merge 1 commit into
Closed
satoshinakamoto666666 wants to merge 1 commit into
satoshinakamoto666666 wants to merge 1 commit into
Conversation
Contributor
|
Welcome to RustChain! Thanks for your first pull request. Before we review, please make sure:
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150) A maintainer will review your PR soon. Thanks for contributing! |
satoshinakamoto666666
force-pushed
the
test/python-sdk-cli-clirunner-17181
branch
from
November 24, 2026 02:45
b65ed9f to
499e43b
Compare
Contributor
Author
|
Rebased onto Wallet: |
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #17181
Closes #17181
Fixes Scottcjn/rustchain-bounties#17181
Closes Scottcjn/rustchain-bounties#17181
Refs #8564, #8565, #8566, #8580, #8618
Summary
Rebased onto
origin/main(499e43b6) and fixed CItest-cli:.github/workflows/python-sdk-cli-tests.yml: Usesactions/checkout@v7andactions/setup-python@v6, installs./sdk/python[dev](resolvingModuleNotFoundError: No module named 'httpx'), and runstest_cli.py+test_amounts.py.sdk/python/tests/test_cli.py: Offline ClickCliRunnertest suite usinghttpx.MockTransport(# SPDX-License-Identifier: MIT).Command -> Test Mapping Table(paste into PR
#8674description)rustchain --help,--versiontest_all_commands_help_and_versionwallet --help, `createwallet create(--words 12,--words 24,--json, invalid--words 15)test_wallet_create_12_and_24_words_human_and_json,test_wallet_create_invalid_word_count_exits_nonzerowallet balance ADDRESS(--node,--json, 4xx/5xx, unreachable, missingADDRESS, canonicalamount_rtc#8580)test_wallet_balance_human_json_and_node_option,test_unreachable_node_exits_nonzero_on_stderr,test_http_4xx_5xx_exits_nonzero_on_stderr_without_traceback,test_wallet_send_bad_address_bad_amounts_and_missing_options,test_regression_8580_balance_reads_canonical_amount_rtc_fieldwallet send FROM TO AMOUNT(--fee,--seed,--node,--json, bad address,abc/0/negative/--fee -1, missing args/--seed,#8564,#8618)test_wallet_send_human_json_node_and_exact_micro_rtc_payload,test_wallet_send_bad_address_bad_amounts_and_missing_options,test_regression_8564_fractional_amount_accepted,test_regression_8618_no_float_money_serializationnode(--node,--json, unreachable, 4xx/5xx, non-JSON 200,#8565node status)test_node_epoch_and_miners_list_commands_and_node_option,test_unreachable_node_exits_nonzero_on_stderr,test_http_4xx_5xx_exits_nonzero_on_stderr_without_traceback,test_non_json_200_never_crashes_with_traceback,test_non_json_200_exits_nonzero_with_stderr_error,test_regression_8565_readme_subcommands_node_status_and_epoch_infoepoch(--node,--json, unreachable, 4xx/5xx, non-JSON 200,#8565epoch info)test_node_epoch_and_miners_list_commands_and_node_option,test_unreachable_node_exits_nonzero_on_stderr,test_http_4xx_5xx_exits_nonzero_on_stderr_without_traceback,test_non_json_200_never_crashes_with_traceback,test_regression_8565_readme_subcommands_node_status_and_epoch_infominers --help,miners list(--node,--json, unreachable, 4xx/5xx, non-JSON 200)test_all_commands_help_and_version,test_node_epoch_and_miners_list_commands_and_node_option,test_unreachable_node_exits_nonzero_on_stderr,test_http_4xx_5xx_exits_nonzero_on_stderr_without_traceback,test_non_json_200_never_crashes_with_tracebackattest WALLET_ADDRESS(--seed,--node, unreachable, 4xx/5xx, missing args/--seed,#8566--json)test_attest_human_flow_with_node_option,test_unreachable_node_exits_nonzero_on_stderr,test_http_4xx_5xx_exits_nonzero_on_stderr_without_traceback,test_wallet_send_bad_address_bad_amounts_and_missing_options,test_regression_8566_attest_json_actually_submits_attestationLocal Verification Output
python -m ruff check sdk/python/tests/test_cli.py->All checks passed!python tools/falsegreen/falsegreen.py --min-sev HIGH sdk/python/tests/test_cli.py->0 finding(s) (0 HIGH, 0 MED) across 1 filespython -m py_compile sdk/python/tests/test_cli.py-> exit0pytest sdk/python/tests/test_cli.py -v->24 passed, 6 xfailed in 0.26s(6 xfailedare strictxfail(strict=True)regression specs for unmerged upstream bugs#8564,#8565,#8566,#8580,#8618wire path blocked by#8564, and non-JSON 200raw_responseexit-0 fallback).pytest sdk/python/rustchain_sdk/tests/test_amounts.py -v->48 passed in 0.09sWallet:
RTCfe0ac752b80e543048c0d91e7dddd1277678b8a5Beacon Agent ID:
bcn_fe0ac752b80e