fix(lamni,omny): consolidate ad-hoc y/n prompts onto OMNYTools.yesno() #294

Merged
holler merged 2 commits from lamni_fixes into main 2026-08-14 10:43:47 +02:00
Member

Several confirmation prompts hand-rolled their own input() parsing
instead of using the established yesno() helper, including one
weaker variant (no default, no retry, case-sensitive) and a "Close
the shutter now?" prompt duplicated verbatim four times.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Several confirmation prompts hand-rolled their own input() parsing instead of using the established yesno() helper, including one weaker variant (no default, no retry, case-sensitive) and a "Close the shutter now?" prompt duplicated verbatim four times. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
holler added 1 commit 2026-08-14 10:36:11 +02:00
fix(lamni,omny): consolidate ad-hoc y/n prompts onto OMNYTools.yesno()
CI for csaxs_bec / test (push) Failing after 1m44s
CI for csaxs_bec / test (pull_request) Failing after 1m44s
f0152fe028
Several confirmation prompts hand-rolled their own input() parsing
instead of using the established yesno() helper, including one
weaker variant (no default, no retry, case-sensitive) and a "Close
the shutter now?" prompt duplicated verbatim four times.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
bec_bl_push-gitea added 1 commit 2026-08-14 10:39:17 +02:00
fix(tests): patch input() where yesno() actually calls it
CI for csaxs_bec / test (pull_request) Successful in 1m52s
Read the Docs Deploy Trigger / trigger-rtd-webhook (push) Successful in 2s
CI for csaxs_bec / test (push) Successful in 1m48s
abb933e10d
find_rotation_center()'s y/n prompts now go through OMNYTools.yesno()
(omny_general_tools.py) instead of a raw input() in x_ray_eye_align.py,
but these tests were still patching input() on the old module -- so
the real input() got called under pytest's captured stdin and raised
"reading from stdin while output is captured".

Patch input() on omny_general_tools instead, where yesno() actually
calls it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
holler merged commit abb933e10d into main 2026-08-14 10:43:47 +02:00
holler deleted branch lamni_fixes 2026-08-14 10:43:47 +02:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bec/csaxs_bec#294