Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers committed Nov 1, 2024
1 parent 227e688 commit 47ed705
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_proc/test_proc_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,12 @@ def test_require_sorted(self, wacky_dim_patch):
coord = wacky_dim_patch.get_coord("time", require_sorted=True)
assert isinstance(coord, BaseCoord)

def test_non_existent_coord_raises(self, random_patch):
"""Ensure requesting non-existent coordinates raises CoordError."""
msg = "not found in Patch"
with pytest.raises(CoordError, match=msg):
random_patch.get_coord("fire_house")

def test_require_evenly_sampled(self, wacky_dim_patch):
"""Test required evenly sampled raises if coord isn't."""
msg = "is not evenly sampled"
Expand Down

0 comments on commit 47ed705

Please sign in to comment.