Skip to content

Commit 12a9ff4

Browse files
test_finance: adjust world bank reference values
1 parent 39b4898 commit 12a9ff4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

climada/util/test/test_finance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def test_gdp_sxm_2010_pass(self):
107107
with self.assertLogs("climada.util.finance", level="INFO") as cm:
108108
gdp_year, gdp_val = gdp("SXM", ref_year)
109109

110-
ref_val = 936089385.47486 # reference GDP value
111-
ref_year = 2011 # nearest year with data available (might change)
110+
ref_val = 892290502.793296 # reference GDP value
111+
ref_year = 2010 # nearest year with data available (might change)
112112
# GDP and years with data available might change if worldbank input
113113
# data changes, check magnitude and adjust ref_val and/or ref_year
114114
# if test fails:
@@ -133,7 +133,7 @@ def test_wb_esp_1950_pass(self):
133133
wb_year, wb_val = world_bank("ESP", ref_year, "NY.GDP.MKTP.CD")
134134

135135
ref_year = 1960
136-
ref_val = 12433394725.2159
136+
ref_val = 12424514013.7604
137137
self.assertEqual(wb_year, ref_year)
138138
self.assertAlmostEqual(wb_val, ref_val)
139139

0 commit comments

Comments
 (0)