File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
climada/entity/exposures/test Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ def test_country_iso_geom_pass(self):
114114 self .assertEqual (cntry_admin1 , {'CHE' : []})
115115 self .assertIsInstance (countries , list )
116116
117- countries = {'Switzerland' : 'Zürich' }
117+ countries = {'Switzerland' : [ 'Zürich' ] }
118118 _ , cntry_admin1 = country_iso_geom (countries , SHP_FILE )
119- self .assertEqual (len (cntry_admin1 ), 1 )
119+ self .assertEqual (len (cntry_admin1 [ 'CHE' ] ), 1 )
120120 self .assertIsInstance (cntry_admin1 ['CHE' ][0 ], shapely .geometry .multipolygon .MultiPolygon )
121121
122122 def test_filter_admin1_pass (self ):
@@ -375,6 +375,7 @@ def test_set_econ_indicators_pass(self):
375375 self .assertAlmostEqual (exp .value .sum (), gdp * (inc_grp + 1 ), 5 )
376376
377377# Execute Tests
378+ TESTS = unittest .TestLoader ().loadTestsFromTestCase (TestProvinces )
378379TESTS = unittest .TestLoader ().loadTestsFromTestCase (TestEconIndices )
379380TESTS .addTests (unittest .TestLoader ().loadTestsFromTestCase (TestCountryIso ))
380381TESTS .addTests (unittest .TestLoader ().loadTestsFromTestCase (TestNightLight ))
You can’t perform that action at this time.
0 commit comments