fix: retain WALOUS edition warnings
This commit is contained in:
@@ -499,7 +499,11 @@ def test_walous_temporal_comparison_reuses_persisted_raster_metrics(
|
||||
}
|
||||
],
|
||||
},
|
||||
"limitation_message": "Cell-based estimate.",
|
||||
"limitation_message": (
|
||||
"2018 crosswalk and methodology limitation."
|
||||
if dataset_id == earlier.id
|
||||
else "2023 edition accuracy limitation."
|
||||
),
|
||||
}
|
||||
|
||||
monkeypatch.setattr(WalousLandCoverService, "analyze", analyze)
|
||||
@@ -523,6 +527,8 @@ def test_walous_temporal_comparison_reuses_persisted_raster_metrics(
|
||||
assert result.metric.later_value == 5.5
|
||||
assert result.metric.absolute_change == 1.5
|
||||
assert result.object_changes.available is False
|
||||
assert "2018 crosswalk and methodology limitation." in result.warnings
|
||||
assert "2023 edition accuracy limitation." in result.warnings
|
||||
|
||||
|
||||
def test_walous_api_routes_use_canonical_envelopes(monkeypatch) -> None:
|
||||
|
||||
Reference in New Issue
Block a user