-
Notifications
You must be signed in to change notification settings - Fork 6
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
Improve COR and tilt validation in test_correlate
and test_minimise
#2326
Conversation
assert final_cor_value != expected_initial_cor | ||
assert final_tilt_value != expected_initial_tilt |
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.
Remove the checks that things are different. Check that the initial values are what is expected, I thin 0 and 64.
assert final_cor_value == expected_final_cor | ||
assert final_tilt_value == expected_final_tilt |
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.
All of the asserts should be self.assertEqual()
as that gives better messages.
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.
Not why, but the PR is trying to delete this file.
f5a2c81
to
72f463f
Compare
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.
Looks good now. Good to have some tests of the values.
I have checked back to release-2.7.0 to see that no recent code changes have modified the values found by these functions.
Issue
Closes #2281
Description
Updated test_correlate and test_minimise to validate COR and tilt before and after actions. Tests now account for cases where COR doesn't change if it's already optimal while ensuring tilt remains constant.
Testing
Verified both tests, ensuring COR changes appropriately and tilt remains unchanged.
Acceptance Criteria
Run the tests and confirm COR and tilt values are validated correctly, with no failures when COR remains unchanged.