test(wizard): fix Claude Code flow test after demo step removal#1297
Merged
muddlebee merged 1 commit intoTracer-Cloud:mainfrom May 5, 2026
Merged
Conversation
run_wizard no longer calls flow.build_demo_action_response; the patch raised AttributeError in CI.
Contributor
|
🧑💻 @muddlebee has entered the contributor hall of fame. Merged. Done. Shipped. Go touch grass (then come back with another PR). 🌱 👋 Join us on Discord - OpenSRE : hang out, contribute, or hunt for features and issues. Everyone's welcome. |
Contributor
Greptile Summary
Confidence Score: 5/5Safe to merge — single-line test cleanup with no logic changes. The change removes exactly one obsolete monkeypatch that caused an AttributeError; all 26 tests pass, no assertions were altered, and there are no new risks introduced. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant Test as test_run_wizard_claude_code_...
participant flow as flow module
participant store as wizard_store
Test->>flow: monkeypatch select_prompt, get_store_path, probe_local_target
Test->>flow: monkeypatch _run_cli_llm_onboarding, save_local_config, sync_provider_env, save_llm_api_key
Note over Test,flow: build_demo_action_response patch removed (no longer on flow)
Test->>flow: run_wizard()
flow->>flow: _render_saved_summary → _render_next_steps
flow->>store: save_local_config(...)
flow-->>Test: exit_code = 0
Test->>Test: assert cli_onboarding_providers == ["claude-code"]
Test->>Test: assert saved_llm_keys == []
Reviews (1): Last reviewed commit: "test(wizard): drop stale build_demo stub..." | Re-trigger Greptile |
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.

Summary
Upstream
run_wizardno longer callsbuild_demo_action_response()(see_render_saved_summary→_render_next_steps).test_run_wizard_claude_code_skips_api_key_and_runs_cli_onboardingwas the only test still monkeypatchingflow.build_demo_action_response, which no longer exists onflow, causingAttributeErrorin CI.Changes
Testing
uv run pytest tests/cli/wizard/test_flow.py -q(26 passed)