trop_cyclone: broadcast_arrays -> broadcast_to #271
GitHub Actions / Unit Test Results Python 3.9
failed
Jan 10, 2024 in 0s
2 fail, 646 pass in 6m 46s
Annotations
Check warning on line 0 in climada.util.test.test_finance.TestWBWealthAccount
github-actions / Unit Test Results Python 3.9
test_pca_CUB_2015_pass (climada.util.test.test_finance.TestWBWealthAccount) failed
tests_xml/tests.xml [took 0s]
Raw output
AssertionError: 108675513472.0 != 108675762920.0
self = <climada.util.test.test_finance.TestWBWealthAccount testMethod=test_pca_CUB_2015_pass>
def test_pca_CUB_2015_pass(self):
"""Test Processed Capital value Cuba 2015 (missing value)."""
ref_year = 2015
cntry_iso = 'CUB'
res_year, res_val, q = world_bank_wealth_account(cntry_iso, ref_year, no_land=1)
ref_val = 108675762920.0
self.assertEqual(q, 0)
self.assertEqual(res_year, ref_year)
> self.assertEqual(res_val, ref_val)
E AssertionError: 108675513472.0 != 108675762920.0
climada/util/test/test_finance.py:205: AssertionError
Check warning on line 0 in climada.util.test.test_finance.TestWBWealthAccount
github-actions / Unit Test Results Python 3.9
test_tow_IND_1985_pass (climada.util.test.test_finance.TestWBWealthAccount) failed
tests_xml/tests.xml [took 0s]
Raw output
AssertionError: 5861186367245.2 not found in [5415188681934.5, 5861193808779.6, 5861186556152.8]
self = <climada.util.test.test_finance.TestWBWealthAccount testMethod=test_tow_IND_1985_pass>
def test_tow_IND_1985_pass(self):
"""Test Total Wealth value India 1985 (outside year range)."""
ref_year = 1985
cntry_iso = 'IND'
var_name = 'NW.TOW.TO'
res_year, res_val, _ = world_bank_wealth_account(cntry_iso, ref_year,
variable_name=var_name)
ref_val = [5415188681934.5, # values sporadically updated by worldbank
5861193808779.6, # <- October 27 2021
5861186556152.8] # <- June 29 2023
self.assertEqual(res_year, ref_year)
> self.assertIn(res_val, ref_val)
E AssertionError: 5861186367245.2 not found in [5415188681934.5, 5861193808779.6, 5861186556152.8]
climada/util/test/test_finance.py:195: AssertionError
Loading