Skip to content

test(sdk): add Click CliRunner test suite for all Python SDK CLI commands (#17181) - #8674

Open
satoshinakamoto666666 wants to merge 1 commit into
Scottcjn:mainfrom
satoshinakamoto666666:test/python-sdk-cli-clirunner-17181
Open

satoshinakamoto666666 wants to merge 1 commit into
Scottcjn:mainfrom
satoshinakamoto666666:test/python-sdk-cli-clirunner-17181

Conversation

@satoshinakamoto666666

@satoshinakamoto666666 satoshinakamoto666666 commented Nov 11, 2026 •

Copy link
Copy Markdown

Fixes #17181
Closes #17181
Fixes Scottcjn/rustchain-bounties#17181
Closes Scottcjn/rustchain-bounties#17181
/claim #17181

Refs #8564, #8565, #8566, #8580, #8618
/claim #17181

Summary

Adds sdk/python/tests/test_cli.py and .github/workflows/python-sdk-cli-tests.yml:

  • Invokes every command and option (wallet create, wallet balance, wallet send, node, epoch, miners list, attest, --help, --version, --json) via click.testing.CliRunner with mocked transport (no live network).
  • Tests error paths (ConnectionError, invalid --words, address mismatch, invalid --amount abc, missing --seed) and verifies non-zero exit codes without tracebacks.
  • Includes 5 xfail(strict=True) regression tests for #8564, #8565, #8566, #8580, and #8618.

Files Changed

  • sdk/python/tests/test_cli.py
  • .github/workflows/python-sdk-cli-tests.yml

Payout Wallet

  • Wallet (RTC): RTCfe0ac752b80e543048c0d91e7dddd1277678b8a5
  • Beacon Agent ID: bcn_fe0ac752b80e

Payout & Claim Information

  • Claim: /claim #17181

@github-actions

Copy link
Copy Markdown
Contributor

Welcome to RustChain! Thanks for your first pull request.

Before we review, please make sure:

  • Non-doc PRs have a BCOS-L1 or BCOS-L2 label
  • Doc-only PRs are exempt from BCOS tier labels when they only touch docs/**, *.md, or common image/PDF files
  • New code files include an SPDX license header
  • You've tested your changes against the live node

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!

@github-actions github-actions Bot added size/L PR: 201-500 lines BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) ci labels Nov 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) ci size/L PR: 201-500 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOUNTY: 15 RTC] Python SDK CLI has zero tests — add a Click CliRunner suite for every command (wallet/node/epoch/miners/attest)

1 participant