You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MAINT: Remove the deprecated print-scenario command from pyrit_shell (due in 1.3.0) #4394
The pyrit_shell command print-scenario is a deprecated alias for scenario-results. Using it prints a deprecation warning that says it will be removed in 1.3.0. main is at 1.3.0.dev0, so it has to go before the release.
What to change
pyrit/cli/pyrit_shell.py: remove do_print_scenario, and its line in the command overview near the top of the file (L101).
tests/unit/cli/test_pyrit_shell.py: several tests call do_print_scenario to exercise result printing and error handling, not just the deprecation. Move those to do_scenario_results where it does not already have the same coverage, instead of deleting them. Delete only the test that checks the deprecation warning.
Done when
print-scenario is an unknown command in the shell and scenario-results <id> behaves as before.
print-scenario and do_print_scenario no longer appear in pyrit/, tests/ or doc/.
Test coverage of the result-printing paths is not reduced.
Unit tests and pre-commit pass.
How to contribute
Claim it first. Before you start, comment on this issue to say you are taking it.
First comment wins. If yours is the first claim comment, go ahead and open a PR; you do not need to wait for a reply. If someone has already commented, this issue is taken, so please pick a different one.
I'm taking this one: removing do_print_scenario and moving its result-printing and error tests onto do_scenario_results where that coverage isn't already there.
Activity
khushi-git-7 commentedon Nov 18, 2026
I'm taking this one: removing
do_print_scenarioand moving its result-printing and error tests ontodo_scenario_resultswhere that coverage isn't already there.