Skip to content
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

r.circle: Add tests for raster circle tool #4598

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Shreshth-Malik
Copy link

This PR adds unit tests for the r.circle module. The tests include:

Binary Circle Test: Verifies the creation of an output and a binary raster map using the -b flag.
Distance Circle Test: Checks the output of an output and a distance-based circle raster without the -b flag.

@github-actions github-actions bot added raster Related to raster data processing Python Related code is in Python module tests Related to Test Suite labels Oct 26, 2024
@Shreshth-Malik Shreshth-Malik changed the title R.circle test r.circle test Oct 26, 2024
@Shreshth-Malik Shreshth-Malik changed the title r.circle test r.circle: Add tests for raster circle tool Oct 26, 2024
def setUpClass(cls):
"""Set up a temporary region for testing."""
cls.use_temp_region()
cls.runModule("g.region", n=1000, s=0, e=1000, w=0, res=10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is 100x100 the smallest needed to be able to test correctly this module?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reduced the region size to a smaller size. Please let me know if there is some other feedback.

@petrasovaa petrasovaa added this to the 8.5.0 milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module Python Related code is in Python raster Related to raster data processing tests Related to Test Suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants