From 106d18e37622409e70ae4f9bbc7f8a931b38078e Mon Sep 17 00:00:00 2001 From: Evan Thomas Date: Thu, 31 Aug 2023 16:23:07 +0200 Subject: [PATCH] Replace ns with seconds --- gpm_api/tests/io/test_checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpm_api/tests/io/test_checks.py b/gpm_api/tests/io/test_checks.py index 03c162b7..c3a11fdb 100644 --- a/gpm_api/tests/io/test_checks.py +++ b/gpm_api/tests/io/test_checks.py @@ -337,9 +337,9 @@ def test_check_time() -> None: assert res == datetime.datetime(2014, 12, 31) # Test a object of datetime64[ns] casts to datetime64[ms] - res = checks.check_time(np.datetime64("2014-12-31T12:30:30.934549845", "ns")) + res = checks.check_time(np.datetime64("2014-12-31T12:30:30.934549845", "s")) assert isinstance(res, datetime.datetime) - assert res == datetime.datetime(2014, 12, 31, 12, 30, 30, 934549) + assert res == datetime.datetime(2014, 12, 31, 12, 30, 30) # Test a datetime.date res = checks.check_time(datetime.date(2014, 12, 31))