Skip to content

Fix CLI tests: remove deprecated mix_stderr parameter - #62

Merged
cmungall merged 1 commit into
mainfrom
fix/cli-runner-typer
Dec 22, 2025
Merged

Fix CLI tests: remove deprecated mix_stderr parameter#62
cmungall merged 1 commit into
mainfrom
fix/cli-runner-typer

Conversation

@cmungall

Copy link
Copy Markdown
Member

Summary

  • Remove deprecated mix_stderr=False parameter from CliRunner fixture
  • The mix_stderr parameter was removed in click 8.0

Test plan

  • CLI tests pass locally
  • CI passes

🤖 Generated with Claude Code

The mix_stderr parameter was removed in click 8.0. Remove it from
the CliRunner fixture to fix test failures.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings December 22, 2025 23:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CLI test fixture to be compatible with Click 8.0+ by removing the deprecated mix_stderr parameter from the CliRunner initialization.

  • Removes the mix_stderr=False parameter which was deprecated in Click 8.0
  • Updates the cli_runner fixture to use the default Click 8.0+ behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_cli.py
@pytest.fixture
def cli_runner():
return CliRunner(mix_stderr=False)
return CliRunner()

Copilot AI Dec 22, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing mix_stderr=False changes the default behavior to mix_stderr=True in Click 8.0+, which means result.stderr and result.stdout will no longer be separately available. This affects the debugging code at line 65-66 where result.stderr and result.stdout are accessed. Consider either: (1) passing mix_stderr=True explicitly to be clear about the behavior change, or (2) updating line 65-66 to only use result.output for debugging output.

Suggested change
return CliRunner()
return CliRunner(mix_stderr=False)

Copilot uses AI. Check for mistakes.
@cmungall
cmungall merged commit a2f92a1 into main Dec 22, 2025
9 checks passed
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.

2 participants