Menu

#277 test: enforce ASCII output for 2fa remove and mode choice

closed
nobody
None
2026-08-08
2026-08-06
Anonymous
No

Originally created by: slegarraga

Closes [#254].

Replaces the em dash in the 2fa remove warning with a plain hyphen and extends test_cli_encode_safe.py so the ASCII guarantee covers both the 2fa remove warning path and a bad parse_mode_choice error.

The bad-mode-choice message in current main already uses an ASCII hyphen, but the new test locks that contract in. Verified with the encode-safe test file.

Related

Tickets: #254
Tickets: #279

Discussion

  • Anonymous

    Anonymous - 2026-08-08

    Ticket changed by: fu351

    • status: open --> closed
     
  • Anonymous

    Anonymous - 2026-08-08

    Originally posted by: fu351

    Merged. This is the valuable kind of test PR: I traced test_2fa_remove_warning_output_is_ascii and it genuinely fails on the unfixed line (the em dash in twofa_remove's warning), so it guards the exact regression it names. The parse_mode_choice guard locks the other message in while it is still clean.

     
  • Anonymous

    Anonymous - 2026-08-08

    Originally posted by: slegarraga

    Thanks for the kind words and for verifying the ASCII regression test. It was a nice focused PR to work on.

     

Log in to post a comment.