Skip to content

grass.jupyter: add test for utils.py functions#7070

Open
ayushjariyal wants to merge 5 commits intoOSGeo:mainfrom
ayushjariyal:tests_utils
Open

grass.jupyter: add test for utils.py functions#7070
ayushjariyal wants to merge 5 commits intoOSGeo:mainfrom
ayushjariyal:tests_utils

Conversation

@ayushjariyal
Copy link
Contributor

This PR add tests for get_region and get_location_proj_string.

In this PR I initialize GRASS session using existing fixtures and avoid relying of GRASS environment to ensure they run correctly outside GRASS shell and CI.

Tests were verify locally in clean Docker image outside GRASS shell.

image

@github-actions github-actions bot added Python Related code is in Python libraries tests Related to Test Suite notebook labels Feb 10, 2026
@ayushjariyal
Copy link
Contributor Author

@gulshan-123, thanks for the suggestion. I’ve updated the code accordingly in this PR and and verified it locally by running pytest from a normal Linux terminal(Not from inside GRASS teminal and not from inside docker container). All tests are now passing.

Screenshot from 2026-02-11 01-15-56

Can you please review this?

@echoix echoix changed the title grass.jupyter: add test for utils.py functions grass.jupyter: add test for utils.py functions Feb 11, 2026
@ayushjariyal
Copy link
Contributor Author

@petrasovaa , The CI is currently failing due to lint errors in super linters. I verify it locally and everything pass successfully on my system.
I am not sure what is causing failure in CI. Could you please review it and guide me on how I should address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libraries notebook Python Related code is in Python tests Related to Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants