Skip to content

r.geomorphon: replace testsuite with pytest reference - #7785

Open
krcoder123 wants to merge 2 commits into
OSGeo:mainfrom
krcoder123:rgeomorphon-pytest
Open

r.geomorphon: replace testsuite with pytest reference#7785
krcoder123 wants to merge 2 commits into
OSGeo:mainfrom
krcoder123:rgeomorphon-pytest

Conversation

@krcoder123

Copy link
Copy Markdown
Contributor

This PR replaces the old gunittest testsuite for r.geomorphon with pytest. It has 8 reference tests checking output statistics on a small deterministic DEM across the main option combinations. It also has 4 parallel correctness tests that compare multi thread output against single thread. The parallel tests are marked skip for now since the module has no nprocs option yet. But, the skip gets removed in the parallelization PR #7783 once this merges.

@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 Jul 28, 2026
Comment thread raster/r.geomorphon/tests/r_geomorphon_test.py Outdated
Comment thread raster/r.geomorphon/tests/r_geomorphon_test.py Outdated

@petrasovaa petrasovaa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove all the nprocs tests, they will be needed in the parallelization PR.


# A polynomial of row and col with cubic terms so curvature varies and
# several landform classes appear without any rand or trig.
DEM_EXPRESSION = (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This results only in a few classes.

Comment thread raster/r.geomorphon/testsuite/test_r_geom.py Outdated
@krcoder123
krcoder123 force-pushed the rgeomorphon-pytest branch from 5f9c8bc to 1674d91 Compare July 29, 2026 23:44
@krcoder123 krcoder123 changed the title r.geomorphon: replace testsuite with pytest reference and parallel tests r.geomorphon: replace testsuite with pytest reference Jul 30, 2026
@krcoder123
krcoder123 requested a review from petrasovaa July 30, 2026 23:39
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.

2 participants