-
Notifications
You must be signed in to change notification settings - Fork 23
Cursor Corrected Unit Tests for New State of Health #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… health pre-repo organization to work with new repo structure)
… for boot count and flags
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… into new-state-of-health
Co-authored-by: JamesDCowley <jcowley04@hotmail.com>
Signed-off-by: Michael Pham <61564344+Mikefly123@users.noreply.github.com>
Signed-off-by: Michael Pham <61564344+Mikefly123@users.noreply.github.com>
Signed-off-by: Michael Pham <61564344+Mikefly123@users.noreply.github.com>
Signed-off-by: Michael Pham <61564344+Mikefly123@users.noreply.github.com>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refines the StateOfHealth unit tests and updates the implementation to validate sensor readings against a configuration schema. Key changes include updated dependency mocks and configuration in the tests, new tests covering sensor error conditions, and enhancements to the StateOfHealth methods for checking sensor readings.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tests/unit/test_state_of_health.py | Updated tests with new config schema, sensor mocks, and enhanced validation checks. |
| pysquared/state_of_health.py | Modified sensor checking logic to use _check_against_schema_bounds and improved method documentation. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Closing since #235 has been merged. |



Summary
Cursor was used in Agent Mode to address the
typecheckandtesterrors that were showing on the original #235 branch. Within the actual state of health file only some imports, type hints, and a return statement has changed. The tests have changed significantly, and I need to take a little more time to really understand the changes. I'll also try running this on hardware tomorrow (June 20th) to verify it works on the V5b.How was this tested