From ca76152bfddc7328e6d38a47827eed6ebb75bd8e Mon Sep 17 00:00:00 2001 From: emanuel-schmid Date: Wed, 2 Feb 2022 10:25:37 +0100 Subject: [PATCH] test.test_api_client: fix shape of riverflood Austria, rcp26, 2010-2030 --- climada/test/test_api_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/climada/test/test_api_client.py b/climada/test/test_api_client.py index 916608ad3..81ba2071a 100644 --- a/climada/test/test_api_client.py +++ b/climada/test/test_api_client.py @@ -139,7 +139,7 @@ def test_get_hazard(self): properties={'country_name': 'Austria', 'year_range': '2010_2030', 'climate_scenario': 'rcp26'}, dump_dir=DATA_DIR) - self.assertEqual(np.shape(hazard.intensity), (480, 5786)) + self.assertEqual(np.shape(hazard.intensity), (1440, 5784)) self.assertEqual(np.unique(hazard.centroids.region_id), 40) self.assertEqual(np.unique(hazard.date).size, 20) self.assertEqual(hazard.tag.haz_type, 'RF') @@ -148,7 +148,7 @@ def test_get_hazard_fails(self): client = Client() with self.assertRaises(ValueError) as cm: client.get_hazard(hazard_type='litpop', - properties={'country_name': ['Switzerland', 'Austria'], + properties={'country_name': 'Austria', 'year_range': '2010_2030', 'climate_scenario': 'rcp26'}, dump_dir=DATA_DIR) self.assertIn('Valid hazard types are a subset of CLIMADA hazard types. Currently',