[GRASS-git] [OSGeo/grass] cb0412: r.cross: migrate tests from gunittest to pytest (#...

Valyrian-Code noreply at github.com
Fri Jul 17 07:42:27 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: cb04122c70d15fa2b397ff93b36bc5f30525b587
      https://github.com/OSGeo/grass/commit/cb04122c70d15fa2b397ff93b36bc5f30525b587
  Author: Rajveer* <irajveer.bishnoi2310 at gmail.com>
  Date:   2026-07-17 (Fri, 17 Jul 2026)

  Changed paths:
    A raster/r.cross/tests/test_r_cross.py
    R raster/r.cross/testsuite/test_cross.py

  Log Message:
  -----------
  r.cross: migrate tests from gunittest to pytest (#7635)

* r.cross: migrate tests from gunittest to pytest

Replace the gunittest testsuite with a pytest module covering the same
behavior: the basic cross product (categories 0..8, no NULLs) and the -z
flag case (NULL combinations dropped, categories 0..5, output has NULLs).
It uses a tmp_path session fixture with synthetic 3x3 rasters and the
grass.tools API.

* Overwrite is not needed, use Tools everywhere

Co-authored-by: Vaclav Petras <wenzeslaus at gmail.com>

---------

Co-authored-by: Vaclav Petras <wenzeslaus at gmail.com>



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


More information about the grass-commit mailing list