Skip to content

docs: name PYAUTO_TEST_MODE explicitly in should_visualize docstring - #1417

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/testmode-env-drift
Jul 22, 2026
Merged

docs: name PYAUTO_TEST_MODE explicitly in should_visualize docstring#1417
Jammy2211 merged 1 commit into
mainfrom
feature/testmode-env-drift

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Companion to PyAutoLabs/PyAutoCTI#95 / PyAutoLabs/PyAutoCTI#96.

Visualizer.should_visualize's docstring point 5 said:

  1. If PyAutoFit test mode is on visualization is disabled, ...

Naming the product rather than the environment variable invites readers to invent PYAUTOFIT_TEST_MODE, which nothing in the stack reads. The canonical knob is PYAUTO_TEST_MODE (PyAutoNerves/autonerves/test_mode.py:14, alongside PYAUTO_TEST_MODE_SAMPLES).

That exact misreading is what produced the dead fixture fixed in PyAutoCTI#96. Docstring-only change; no behaviour change.

The docstring said 'If PyAutoFit test mode is on', naming the product rather
than the environment variable. That phrasing leads readers to invent
`PYAUTOFIT_TEST_MODE`, which nothing reads — the canonical knob is
`PYAUTO_TEST_MODE` (autonerves/test_mode.py). Companion to PyAutoCTI#95.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JiU4VbBD9X6jPYJMCx3boh
@Jammy2211
Jammy2211 merged commit 3b3e6de into main Jul 22, 2026
5 checks passed
@Jammy2211
Jammy2211 deleted the feature/testmode-env-drift branch July 22, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant