Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sfinkens committed Jul 5, 2024
1 parent 566e11a commit 906c85f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions satpy/tests/reader_tests/test_ahi_hrit.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ def test_start_time_from_aqc_time(self):
"""Test that by the datetime from the metadata returned when `use_acquisition_time_as_start_time=True`."""
import datetime as dt
start_time = dt.datetime(2022, 1, 20, 12, 10)
expected = dt.datetime(1970, 1, 1, 0, 0, 1, 36799)
for platform in ["Himawari-8", "MTSAT-2"]:
mda = self._get_mda(platform=platform)
reader = self._get_reader(
mda=mda,
filename_info={"start_time": start_time},
reader_kwargs={"use_acquisition_time_as_start_time": True})
assert reader.start_time == expected
assert reader.start_time == dt.datetime(1970, 1, 1, 0, 0, 1, 36799)
assert reader.end_time == dt.datetime(1970, 1, 1, 3, 3, 20, 16000)

0 comments on commit 906c85f

Please sign in to comment.