wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion

Integration tests for the dtm_wallonia_1m built-in plugin.

These tests make real HTTP requests to download the tile-index shapefile and, optionally, individual 1 m DTM tiles. Run them with:

pytest -m network wolfhece/_builtin_plugins/dtm_wallonia_1m/tests/ -v

They are skipped in offline / CI environments unless the network mark is explicitly requested.

Geographic notes

All coordinates are in EPSG:31370 (Belgian Lambert 1972). The approximate geographic centre of Wallonia is around

x = 214 500 m, y = 98 000 m (Condroz plateau, near Ciney).

The 500 m × 500 m test window is centred there.

Module Contents

wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion._make_bounds_vec(xmin: float, ymin: float, xmax: float, ymax: float)[source]

Return a closed vector bounding rectangle.

wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion._HALF = 250.0[source]
wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion._XMIN = 214250.0[source]
wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion._XMAX = 214750.0[source]
wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion._YMIN = 97750.0[source]
wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion._YMAX = 98250.0[source]
class wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion.TestDtmWalloniaTiles[source]

Tests for the internal _DtmWalloniaTiles tile manager.

test_download_index()[source]

The tile-index shapefile is downloaded (or retrieved from cache).

test_extract_center_wallonia_500m()[source]

A 500 m × 500 m crop around the centre of Wallonia returns a valid WolfArray.

class wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion.TestDtmWallonia1mCompanion[source]

Tests for the public API of DtmWallonia1mCompanion.

test_get_dtm_returns_wolf_array()[source]

get_dtm_1m(vector) returns a valid WolfArray without a viewer.