Skip to content

Pytest conversion/tmt run fixture - #5158

Open
LecrisUT wants to merge 3 commits into
tests-plan-select-to-pytest-no-cwd-changefrom
pytest-conversion/tmt-run-fixture
Open

LecrisUT wants to merge 3 commits into
tests-plan-select-to-pytest-no-cwd-changefrom
pytest-conversion/tmt-run-fixture

Conversation

@LecrisUT

Copy link
Copy Markdown
Member

Inspired by the design in #5151, this adds a way to inject and alter the cli options in a more composable way

Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
@LecrisUT
LecrisUT added this pull request to stack #5152 September 14, 2026 16:25
@LecrisUT LecrisUT added the ci | full test Pull request is ready for the full test execution label Sep 14, 2026
Comment thread tests/__init__.py Outdated


class CliRunner(click.testing.CliRunner):
opts: Optional[TmtCliOptions] = None

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.

Is options already claimed by Click? If so, I'd still prefer some form of "options", e.g. _tmt_options, _our_options, etc., to align with TmtCliOptions, TmtCliRunOptions, to_options, _tmt_cli_options, and so on. opts break the pattern for no obvious reason.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No reason, just how my fingers flowed at that time :) 96ec4c8

Signed-off-by: Cristian Le <git@lecris.dev>
@github-project-automation github-project-automation Bot moved this to backlog in planning Sep 16, 2026
@LecrisUT LecrisUT moved this from backlog to review in planning Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci | full test Pull request is ready for the full test execution

Projects

Status: review

Development

Successfully merging this pull request may close these issues.

2 participants