Skip to content

test: cover Lakeshore335 stability check and shutdown - #71

Merged
Anai-Guo merged 1 commit into
mainfrom
chore/auto-maint-2026-11-24
Nov 25, 2026
Merged

Anai-Guo merged 1 commit into
mainfrom
chore/auto-maint-2026-11-24

Conversation

@Anai-Guo

Copy link
Copy Markdown
Owner

Automated maintenance

Type: tests
Change: Add mocked-VISA tests for Lakeshore335.is_stable() and Lakeshore335.shutdown().
Evidence: pytest --cov showed src/lab_harness/drivers/lakeshore335.py at 80% line coverage; is_stable() and shutdown() were never exercised. The driver source is unchanged.
Verification: new file 8 passed; full suite 712 passed; module coverage 80% -> 100%; ruff check and ruff format --check clean.
Reference: none

Opened by the daily maintenance task. It is merged automatically on the next run once CI is green.
To stop that, add the hold label or convert this PR to a draft.

🤖 Generated with Claude Code

Line coverage of drivers/lakeshore335.py was 80%: is_stable() and
shutdown() had no tests. Add mocked-VISA tests for the setpoint
comparison (channel, tolerance, exclusive boundary) and for shutdown
turning the heater off and still disconnecting when that command fails.
Coverage of the module is now 100%; full suite 712 passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Anai-Guo
Anai-Guo merged commit a41f215 into main Nov 25, 2026
3 checks passed
@Anai-Guo
Anai-Guo deleted the chore/auto-maint-2026-11-24 branch November 25, 2026 11:28
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