Skip to content

♻️ Unify the testing functionality#1792

Draft
svlandeg wants to merge 4 commits into
fastapi:masterfrom
svlandeg:feat/cli_runner
Draft

♻️ Unify the testing functionality#1792
svlandeg wants to merge 4 commits into
fastapi:masterfrom
svlandeg:feat/cli_runner

Conversation

@svlandeg
Copy link
Copy Markdown
Member

@svlandeg svlandeg commented May 27, 2026

WIP - don't merge yet, I want to come back to this to see if there's anything more to clean up.

Description

Continuation of #1774, and addressing #1790: merging Typer's and Click's CLIRunner functionality into typer.testing module.

One potentially breaking change:

Removed the option to pass a stream to CLIRunner.invoke(). We aren't using this in Typer and it isn't documented. Cf this commit.

AI Disclaimer

No AI used.

Checklist

This is just a code refactor, no new tests.

  • Coverage stays at 100%.

@svlandeg svlandeg changed the title ♻️ Integrate the two CLIRunner classes ♻️ Unify the testing functionality May 27, 2026
@svlandeg svlandeg self-assigned this May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants