[GRASS-git] [OSGeo/grass-addons] 6f000f: tests: Prevent leaking of MagicMocks in r.in.ssurg...
Vaclav Petras
noreply at github.com
Wed Jul 15 03:14:03 PDT 2026
Branch: refs/heads/grass8
Home: https://github.com/OSGeo/grass-addons
Commit: 6f000f937de28c770c20049ccee90c83d52310f1
https://github.com/OSGeo/grass-addons/commit/6f000f937de28c770c20049ccee90c83d52310f1
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M src/raster/r.in.ssurgo/tests/conftest.py
Log Message:
-----------
tests: Prevent leaking of MagicMocks in r.in.ssurgo tests (#1771)
Install the grass/requests MagicMock stubs in sys.modules only for the
duration of the addon import inside the ssurgo_module fixture, then
restore the originals. This keeps the mocks from leaking into other
addons' tests during a shared, repo-wide pytest run.
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