Skip to content

test: Replace brittle CLI help snapshots - #212

Merged
BenWestgate merged 1 commit into
reviewability-v1from
codex/195-targeted-help-tests
Nov 2, 2026
Merged

BenWestgate merged 1 commit into
reviewability-v1from
codex/195-targeted-help-tests

Conversation

@BenWestgate

Copy link
Copy Markdown
Owner

The ms32 --help test pinned every line of CLI copy, so harmless wording and line wrapping edits forced unrelated test updates.

This PR replaces the top-level and wallet help snapshots, plus the wrapped correct, secret, and share descriptions, with checks for:

  • Successful --help exit, usage output, and no stderr.
  • Commands available in codex32 versus ms32.
  • Guidance against putting secrets in command arguments, prompting, and threshold/index constraints.
  • Supported --bytes, --account, and --timestamp options and wallet rescan guidance.

The exact share argument-error assertion remains because it verifies actionable CLI error behavior. No runtime code changes.

Validation: 8 tests in tests/test_generic_hrp.py passed; Ruff lint/format and git diff --check passed.

Closes #195.

Replace full top-level and wallet help snapshots with targeted checks for command availability, safe input guidance, options, and successful --help exits. Keep the actionable argument-error assertion, which covers behavior rather than documentation wording.

Focused generic-HRP tests: 8 passed. Ruff check and format, and git diff --check: passed.

Refs #195
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T00:59:21.446898Z 9776195 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@BenWestgate
BenWestgate merged commit e5cf94f into reviewability-v1 Nov 2, 2026
23 checks passed
@BenWestgate
BenWestgate deleted the codex/195-targeted-help-tests branch November 2, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant