Skip to content

Commit f46d584

Browse files
committed
fix tests.
1 parent 0d96b7a commit f46d584

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

cf_xarray/tests/test_accessor.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@ def test_cell_measures() -> None:
259259
actual = ds.cf.__repr__()
260260
expected_repr = """\
261261
Data Variables:
262-
- Cell Measures: foo_measure: ['foo']
263-
volume: ['foo']
264-
area: n/a
262+
Cell Measures: foo_measure: ['foo']
263+
volume: ['foo']
264+
area: n/a
265265
266-
- Standard Names: air_temperature: ['air']
267-
foo_std_name: ['foo']
266+
Standard Names: air_temperature: ['air']
267+
foo_std_name: ['foo']
268268
269-
- Bounds: n/a"""
269+
Bounds: n/a"""
270270
assert actual.endswith(dedent(expected_repr))
271271

272272

@@ -895,11 +895,10 @@ def test_bounds() -> None:
895895

896896
# Dataset has bounds
897897
expected_repr = """\
898-
- Bounds: Y: ['lat_bounds']
899-
lat: ['lat_bounds']
900-
latitude: ['lat_bounds']
901-
"""
902-
assert dedent(expected_repr) in ds.cf.__repr__()
898+
Bounds: Y: ['lat_bounds']
899+
lat: ['lat_bounds']
900+
latitude: ['lat_bounds']"""
901+
assert expected_repr in ds.cf.__repr__()
903902

904903
# DataArray does not have bounds
905904
expected_repr = airds.cf["air"].cf.__repr__()

0 commit comments

Comments
 (0)