[GRASS-git] [OSGeo/grass] 8a26c8: g.mapset: Add tests for switching, creation, and e...

Vaclav Petras noreply at github.com
Wed Mar 25 03:38:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 8a26c8890a5b4cf503a4ec5522d81a72866f642e
      https://github.com/OSGeo/grass/commit/8a26c8890a5b4cf503a4ec5522d81a72866f642e
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2026-03-25 (Wed, 25 Mar 2026)

  Changed paths:
    A general/g.mapset/tests/g_mapset_switch_test.py

  Log Message:
  -----------
  g.mapset: Add tests for switching, creation, and error handling (#7214)

Coverage was determined by tracing code paths in main.c and the library functions it calls (G_make_mapset, G_mapset_permissions2, G_get_available_mapsets, lock program). Tests cover core switching, mapset creation and error paths, cross-project and cross-directory switching, listing behavior, and locked mapset detection.

What is intentally left out are tests of user permissions (test would require another user) and output format tests (separate tests already exist).

Generated with the assistance of AI (Claude).



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