Skip to content

Commit 664572d

Browse files
committed
Fix tests
1 parent 3a0f2e6 commit 664572d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_input_damages.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ def test_prep_mortality_damages(
10631063
"valuation": (["valuation"], ["vsl", "vly"]),
10641064
"year": (["year"], [2010, 2099]),
10651065
},
1066-
).expand_dims('mortality')
1066+
).expand_dims("mortality")
10671067

10681068
d = os.path.join(tmp_path, "mortality_in")
10691069
if not os.path.exists(d):
@@ -1121,7 +1121,10 @@ def test_prep_mortality_damages(
11211121
},
11221122
)
11231123

1124-
xr.testing.assert_equal(ds_out_expected, ds_out_actual.sel(ds_out_expected.coords))
1124+
xr.testing.assert_equal(
1125+
ds_out_expected,
1126+
ds_out_actual.sel(ds_out_expected.coords).transpose(ds_out_expected.dims),
1127+
)
11251128

11261129

11271130
def test_error_prep_mortality_damages(tmp_path):

0 commit comments

Comments
 (0)