Skip to content

Commit 3a0f2e6

Browse files
committed
Fix tests
1 parent fb6fba1 commit 3a0f2e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_input_damages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ def test_prep_mortality_damages(
11101110
),
11111111
},
11121112
coords={
1113-
"batch": (["batch"], ["batch" + str(i) for i in [0, 1, 10, 11, 12, 13, 14, 2, 3, 4, 5, 6, 7, 8, 9,]]),
1113+
"batch": (["batch"], ["batch" + str(i) for i in range(15)]),
11141114
"gcm": (["gcm"], ["ACCESS1-0", "GFDL-CM3"]),
11151115
"model": (["model"], ["IIASA GDP", "OECD Env-Growth"]),
11161116
"rcp": (["rcp"], ["rcp45", "rcp85"]),
@@ -1121,7 +1121,7 @@ def test_prep_mortality_damages(
11211121
},
11221122
)
11231123

1124-
xr.testing.assert_equal(ds_out_expected, ds_out_actual)
1124+
xr.testing.assert_equal(ds_out_expected, ds_out_actual.sel(ds_out_expected.coords))
11251125

11261126

11271127
def test_error_prep_mortality_damages(tmp_path):

0 commit comments

Comments
 (0)