Skip to content

Commit

Permalink
fix attrs test?
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Jan 30, 2025
1 parent 7a70ac7 commit 0554fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf_xarray/tests/test_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ def test_add_canonical_attributes(override, skip, verbose, capsys):

# Attributes have been added
for var in sum(ds.cf.standard_names.values(), []):
assert set(ds[var].attrs) < set(cf_ds[var].attrs)
assert set(ds[var].attrs) <= set(cf_ds[var].attrs)

# Time units did not change
assert ds["time"].attrs.get("units") is cf_ds["time"].attrs.get("units") is None
Expand Down

0 comments on commit 0554fd2

Please sign in to comment.