Skip to content

Commit

Permalink
Check for dtype instead of string representation
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed Dec 11, 2023
1 parent a43187e commit df26a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/test_seviri_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_get_cds_time_nanoseconds(self):
expected = np.datetime64("2016-03-03 12:00:00.000")
res = get_cds_time(days=days, msecs=msecs)
np.testing.assert_equal(res, expected)
assert ".000000000" in res.__repr__()
assert res.dtype == np.dtype("datetime64[ns]")

def test_pad_data_horizontally_bad_shape(self):
"""Test the error handling for the horizontal hrv padding."""
Expand Down

0 comments on commit df26a58

Please sign in to comment.