Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder committed Oct 25, 2024
1 parent be0fc70 commit 648e1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e3sm_diags/driver/utils/test_dataset_xr.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def test_returns_climo_dataset_using_derived_var_directly_from_dataset(self):
]
),
dims=["time", "lat", "lon"],
attrs={"units": "mm/s"},
attrs={"units": "mm/day"},
)
),
},
Expand Down Expand Up @@ -1168,7 +1168,7 @@ def test_returns_time_series_dataset_using_derived_var(self):
dtype=object,
)
expected["PRECT"] = expected["pr"] * 3600 * 24
expected["PRECT"].attrs["units"] = "mm/s"
expected["PRECT"].attrs["units"] = "mm/day"

xr.testing.assert_identical(result, expected)

Expand Down

0 comments on commit 648e1e1

Please sign in to comment.