Skip to content

Conversation

@Mikefly123
Copy link
Member

Summary

Cursor was used in Agent Mode to address the typecheck and test errors 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

  • Added new unit tests
  • Ran code on hardware (screenshots are helpful)
  • Other (Please describe)

@Mikefly123 Mikefly123 self-assigned this Jun 19, 2025
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>
@sonarqubecloud
Copy link

@Mikefly123 Mikefly123 requested a review from Copilot June 23, 2025 18:12
Copy link
Contributor

Copilot AI left a 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>
Base automatically changed from new-state-of-health to main July 3, 2025 23:11
@nateinaction
Copy link
Member

Closing since #235 has been merged.

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.

4 participants