[GRASS-git] [OSGeo/grass-addons] c847ce: r.clip: Add pytest tests (#1784)

Christian Braun noreply at github.com
Tue Jul 14 16:07:10 PDT 2026


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: c847ce3b3a79906580ff44366022139b57c7c931
      https://github.com/OSGeo/grass-addons/commit/c847ce3b3a79906580ff44366022139b57c7c931
  Author: Christian Braun <christian.braun1980 at gmail.com>
  Date:   2026-07-14 (Tue, 14 Jul 2026)

  Changed paths:
    A src/raster/r.clip/tests/conftest.py
    A src/raster/r.clip/tests/r_clip_test.py

  Log Message:
  -----------
  r.clip: Add pytest tests (#1784)

Adds a pytest suite for the r.clip addon, which had none.

7 cases: default clip preserves input cell size/alignment; -r resamples to region resolution; clipped values match the source; overwrite protection; region larger than input yields nulls outside; misaligned region snaps to the input grid; works in projected (UTM) and geographic (lat/lon) CRS.

This tests the current behavior and it does not question how the overlap works.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications


More information about the grass-commit mailing list