Skip to content

Commit ca76152

Browse files
test.test_api_client: fix shape of riverflood Austria, rcp26, 2010-2030
1 parent c729650 commit ca76152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

climada/test/test_api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_get_hazard(self):
139139
properties={'country_name': 'Austria',
140140
'year_range': '2010_2030', 'climate_scenario': 'rcp26'},
141141
dump_dir=DATA_DIR)
142-
self.assertEqual(np.shape(hazard.intensity), (480, 5786))
142+
self.assertEqual(np.shape(hazard.intensity), (1440, 5784))
143143
self.assertEqual(np.unique(hazard.centroids.region_id), 40)
144144
self.assertEqual(np.unique(hazard.date).size, 20)
145145
self.assertEqual(hazard.tag.haz_type, 'RF')
@@ -148,7 +148,7 @@ def test_get_hazard_fails(self):
148148
client = Client()
149149
with self.assertRaises(ValueError) as cm:
150150
client.get_hazard(hazard_type='litpop',
151-
properties={'country_name': ['Switzerland', 'Austria'],
151+
properties={'country_name': 'Austria',
152152
'year_range': '2010_2030', 'climate_scenario': 'rcp26'},
153153
dump_dir=DATA_DIR)
154154
self.assertIn('Valid hazard types are a subset of CLIMADA hazard types. Currently',

0 commit comments

Comments
 (0)