Skip to content

Commit

Permalink
test_finance: adjust world bank reference values
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Dec 18, 2024
1 parent 39b4898 commit 12a9ff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions climada/util/test/test_finance.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def test_gdp_sxm_2010_pass(self):
with self.assertLogs("climada.util.finance", level="INFO") as cm:
gdp_year, gdp_val = gdp("SXM", ref_year)

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

ref_year = 1960
ref_val = 12433394725.2159
ref_val = 12424514013.7604
self.assertEqual(wb_year, ref_year)
self.assertAlmostEqual(wb_val, ref_val)

Expand Down

0 comments on commit 12a9ff4

Please sign in to comment.