-
-
Notifications
You must be signed in to change notification settings - Fork 351
grass.gunittest: Handle null cases in assertRasterMinMax #5440
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
base: main
Are you sure you want to change the base?
Conversation
assertRasterMinMax currently fails with a TypeError if either the provided reference values or the actual determined range values are NULL. Update the method to handle NULL cases correctly.
simplify boolean checks and use a standard message
This reverts commit c2cb0c5.
to handle precision issues in json output.
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.
I agree with the logic in the assert method and the wider range in testing. I have some notes about the test.
raster/r.tile/testsuite/testrt.py
Outdated
refmin=74.75374, | ||
refmax=156.3299, | ||
refmin=74.75373, | ||
refmax=156.3300, | ||
msg="tile-000-000 in degrees must be between 74.75374 and 156.3299", |
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.
This needs an update, but actually, deleting should be fine too. The default message will do here. Same below.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
assertRasterMinMax currently fails with a TypeError if either the provided reference values or the actual determined range values are NULL. Update the method to handle NULL cases correctly.
Fixes #3241