Repository navigation
MAINT: Remove the deprecated print-scenario command from pyrit_shell - #4428
Merged
Roman Lutz (romanlutz) merged 3 commits intoNov 22, 2026
Merged
Roman Lutz (romanlutz) merged 3 commits into
Roman Lutz (romanlutz) merged 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the removal of the deprecated command.
No open issues 🎉
What changed in this PR
Removes the deprecated print-scenario command ahead of PyRIT 1.3.0, addressing #4394 while preserving scenario-results behavior.
Changes:
- Removes the alias handler and command overview entry, leaving
print-scenarioto normal unknown-command handling. - Moves success and error tests to
scenario-resultsand removes obsolete alias-specific tests.
| File | Description |
|---|---|
tests/unit/cli/test_pyrit_shell.py |
Preserves result-printing coverage under scenario-results and removes alias references. |
pyrit/cli/pyrit_shell.py |
Removes the deprecated command handler and its help entry. |
Review effort: Balanced
…eported TestDoScenarioResults.test_fetch_error_is_reported already covers the scenario-results fetch-error path with the same mock and assertion. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Roman Lutz (romanlutz)
approved these changes
Nov 22, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Author
|
Thanks for trimming the duplicate test and merging, Roman Lutz (@romanlutz). |
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.
Description
Removes the deprecated
print-scenarioshell command, due in 1.3.0.scenario-results <id>behaves as before. Closes #4394.do_print_scenarioand its line in the command overview, soprint-scenarionow falls through to the shell's usual "Unknown command" handling.do_scenario_results, since those two cases weren't covered for it yet. The no-argument case was already covered bytest_no_args_prints_usage, and the deprecation-warning test is removed. The test class and docstring no longer mention the alias.