[GRASS-git] [OSGeo/grass] afa422: tests: Add pytest coverage for the temporal framew...

Vaclav Petras noreply at github.com
Thu Jul 16 14:46:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: afa422114ae67aa02259ef382830b612885cec97
      https://github.com/OSGeo/grass/commit/afa422114ae67aa02259ef382830b612885cec97
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M .github/workflows/pytest_args_gunittest.txt
    A lib/vector/rtree/tests/lib_vector_rtree_ctypes_test.py
    M python/grass/temporal/Makefile
    A python/grass/temporal/tests/grass_temporal_datetime_math_test.py
    A python/grass/temporal/tests/grass_temporal_granularity_test.py
    A python/grass/temporal/tests/grass_temporal_spatial_extent_test.py
    A python/grass/temporal/tests/grass_temporal_topology_test.py
    R python/grass/temporal/unit_tests.py

  Log Message:
  -----------
  tests: Add pytest coverage for the temporal framework and R-tree bindings (#7728)

Add executed pytest tests for parts of the temporal framework and the
R-tree ctypes bindings that no test in CI covered. The cases build their
datasets in memory, so they need neither a temporal database nor a GRASS
session.

- grass_temporal_datetime_math_test.py: datetime increment by string and
  adjustment of a datetime to a granularity.
- grass_temporal_granularity_test.py: absolute-time granularity of map
  lists of intervals, time points and a mix of both.
- grass_temporal_topology_test.py: the temporal topology builder relations
  (overlaps, overlapped, follows, precedes, contains, during) and the map
  list sorting keys. Following TemporalExtent.overlaps, an interval that
  starts and ends earlier overlaps the later one.
- grass_temporal_spatial_extent_test.py: the 2D and 3D spatial extent
  relations and intersection.
- lib_vector_rtree_ctypes_test.py: the 1D to 4D R-tree search through the
  grass.lib ctypes bindings.

These checks previously existed only in grass.temporal.unit_tests, which
could not be imported and was not run, and in doctests that CI does not
execute.

Prepared with the assistance of AI (Claude Code).



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