Skip to content

MAINT: Remove the deprecated print-scenario command from pyrit_shell (due in 1.3.0) #4394

Closed

Description

@romanlutz

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.
  • Link this issue in your PR description.

Activity

  1. khushi-git-7 commented on Nov 18, 2026

    @khushi-git-7
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions