Skip to content

Commit

Permalink
fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Stuebe committed Oct 5, 2023
1 parent cd2d5c6 commit a5861d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kerchunk/tests/test_grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,8 @@ def test_archives(tmpdir, url):
xr.testing.assert_allclose(ours, theirs)

def test_subhourly():
result = scan_grib("hrrr.wrfsubhf.sample.grib2")
len(result) == 2
# two messages extracted from a hrrr output including one with an eccodes
# non-compliant endstep type which raises WrongStepUnitError
fpath = os.path.join(here, "hrrr.wrfsubhf.sample.grib2")
result = scan_grib(fpath)
assert len(result) == 2, "Expected two grib messages"

0 comments on commit a5861d7

Please sign in to comment.