Add bounded GRB map acquisition
This commit is contained in:
@@ -11,12 +11,13 @@ def read(path: str) -> str:
|
||||
return (ROOT / path).read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def test_official_raster_catalog_hook_loads_all_governed_registries() -> None:
|
||||
hook = read("frontend/src/hooks/useOfficialRasterProducts.ts")
|
||||
def test_official_map_catalog_hook_loads_all_governed_registries() -> None:
|
||||
hook = read("frontend/src/hooks/useOfficialMapProducts.ts")
|
||||
|
||||
assert "datasetsApi.listThematicRasterProducts" in hook
|
||||
assert "datasetsApi.listDhmvProducts" in hook
|
||||
assert "datasetsApi.listFloodHazardProducts" in hook
|
||||
assert "datasetsApi.listGrbProducts" in hook
|
||||
assert "Promise.all([" in hook
|
||||
|
||||
|
||||
@@ -24,7 +25,7 @@ def test_map_selection_can_acquire_dhmv_and_flood_hazard_products() -> None:
|
||||
selection_hook = read("frontend/src/hooks/useMapThemeSelectionInsights.ts")
|
||||
workspace = read("frontend/src/components/map/MapWorkspace.tsx")
|
||||
|
||||
assert "'thematic_raster' | 'dhmv' | 'flood_hazard'" in selection_hook
|
||||
assert "'thematic_raster' | 'dhmv' | 'flood_hazard' | 'grb'" in selection_hook
|
||||
assert "datasetsApi.acquireDhmv" in selection_hook
|
||||
assert "datasetsApi.acquireFloodHazard" in selection_hook
|
||||
assert "datasetsApi.acquireThematicRaster" in selection_hook
|
||||
|
||||
Reference in New Issue
Block a user