Skip to content

Conversation

@wenzeslaus
Copy link
Member

Add check for issues with the output file parent directory, and report error messages. This avoids a traceback originating at the very end of the tool execution when calling shutil.move.

This adds tests for the newly handled error states as well as for other issues with the inputs.

It adds the new pytest fixtures to scripts conftest.py file given there is at least some potential for reusability for similar simple tests.

Add check for issues with the output file parent directory, and report error messages. This avoids a traceback originating at the very end of the tool execution when calling shutil.move.

This adds tests for the newly handled error states as well as for other issues with the inputs.

It adds the new pytest fixtures to scripts conftest.py file given there is at least some potential for reusability for similar simple tests.
@github-actions github-actions bot added raster Related to raster data processing Python Related code is in Python module tests Related to Test Suite labels Sep 12, 2025
petrasovaa
petrasovaa previously approved these changes Sep 17, 2025
petrasovaa
petrasovaa previously approved these changes Sep 23, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
echoix and others added 2 commits September 23, 2025 20:46
…indows CI, this does not cause r.pack to fail. Assuming here that the directory still allows writes, we can't fully set up the test, so we don't test that for Windows.
@wenzeslaus
Copy link
Member Author

The test with read-only directory would fail on Windows, so I'm skipping it for Windows.

@wenzeslaus wenzeslaus merged commit d4e9540 into OSGeo:main Sep 24, 2025
27 checks passed
@wenzeslaus wenzeslaus deleted the r_pack-add-tests branch September 24, 2025 21:06
@github-actions github-actions bot added this to the 8.5.0 milestone Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module Python Related code is in Python raster Related to raster data processing tests Related to Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants