test: extend ASCII-only guarantee to 2fa remove and setup mode errors (#254)
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: Wsif123
Rebased on current main and ready for review.
Fixes issue [#254]: two user-facing CLI messages slipped non-ASCII dashes past the cp1252-safe onboarding guarantee.
Extended \ ests/unit/test_cli_encode_safe.py\ so the ASCII guarantee covers the two paths that slipped through:
Verified both new tests go RED when the character fixes are reverted. \
uff check\, \
uff format --check\ and the touched unit tests pass on Python 3.11 and 3.13.
Originally posted by: Wsif123
Dropping out - closing this PR and removing my changes. Apologies for the noise.
Ticket changed by: Wsif123
Originally posted by: fu351
@Wsif123 Even though this PR didn't land, the ASCII-guarantee instinct was right; that same class of bug later got a cp1252 fix in the auth prompt. I hope you take another swing.
Quick community roll-call: are you in the Doberman Discord? If yes, drop your handle here (or DM me there) so I can match the GitHub side of your work to your Discord name. If not, you're warmly invited: https://discord.gg/Sfy5XGNqty