Closed linakrisztian closed 7 months ago
May I suggest adding a test test_download_commands_vsicurl
similar to
The test may then execute two imports:
r.import
on /vsicurl/https://data.mundialis.de/geodata/lulc-germany/classification_2021/classification_map_germany_2021_v01_COG.tif --> should fail as too many pixelsr.import
on /vsicurl/https://github.com/OSGeo/grass/raw/main/raster/r.in.gdal/testsuite/data/elevation.tif --> should succeed as only 150x135 pixels@neteler Good hint, I will add a test and thanks for the example data.
I had a look and I think it is not reasonable to put it into actinia-core/tests/test_geodata_import.py. Within this test the download and import for vector and raster data is tested.
I will create some separate test-file test_raster_import_pixellimit.py
, checking the pixellimit for all r.import
commands.
Check the current
r.import
command against the user cell limit (withinephemeral_processing.py
) + added tests for this checkPR additionally contains small linting changes:
test_download_cache.py
(line too long)