Skip to content

Tests: add pytest-based test for rasterExists helper function#7171

Open
ayushjariyal wants to merge 8 commits intoOSGeo:mainfrom
ayushjariyal:pytest_testing
Open

Tests: add pytest-based test for rasterExists helper function#7171
ayushjariyal wants to merge 8 commits intoOSGeo:mainfrom
ayushjariyal:pytest_testing

Conversation

@ayushjariyal
Copy link
Contributor

@ayushjariyal ayushjariyal commented Mar 8, 2026

This PR introduces a pytest-based test for rasterExists and a fixture for automatic GRASS session setup.

Changes:

Added assertions.py implementing rasterExists
Added conftest.py with a pytest fixture for GRASS session setup
Added test_assertions.py containing pytest-based tests

Testing:

image

GSoC 2026:

This contribution is a part of GSoC 2026 Support writing tests with pytest project.

@github-actions github-actions bot added Python Related code is in Python libraries tests Related to Test Suite CMake labels Mar 8, 2026
ayushjariyal and others added 3 commits March 8, 2026 17:45
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ayushjariyal and others added 3 commits March 8, 2026 17:48
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant