From 28c54f10116a95e871cca28862940decb95e8c20 Mon Sep 17 00:00:00 2001
From: Alan De Smet <alan.desmet@ssec.wisc.edu>
Date: Fri, 20 Aug 2021 16:08:50 -0500
Subject: [PATCH] Fix test

Remove timestamp if period >= 1 day
---
 csppfetch/test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/csppfetch/test.py b/csppfetch/test.py
index 6fd287a..4ae2099 100755
--- a/csppfetch/test.py
+++ b/csppfetch/test.py
@@ -605,7 +605,7 @@ class DownloaderTests(DTestCase):
         timesteps = d.get_cache_filesets(end=test_datetime)
         # This is a hard coded sanity test before getting to the 
         # overly clever dynamically generated test
-        self.assertEqual(repr(timesteps[0][0]),'<Example Downloader for Testing for 2019-05-27 00:00:00 at priority "" (empty string) (expected? True): {2019_05_27_147/avhrr-only-v2.20190527.nc: avhrr-only-v2.20190527.nc}>')
+        self.assertEqual(repr(timesteps[0][0]),'<Example Downloader for Testing for 2019-05-27 at priority "" (empty string) (expected? True): {2019_05_27_147/avhrr-only-v2.20190527.nc: avhrr-only-v2.20190527.nc}>')
         for timestep in range(3):
             idx = 0
             days = range(27,22,-1)
@@ -613,7 +613,7 @@ class DownloaderTests(DTestCase):
             for day in subdays:
                 day_of_year = day+120
                 for prio,desc in {'': '"" (empty string)', '_preliminary': '"_preliminary"'}.items():
-                    expected = f'<Example Downloader for Testing for 2019-05-{day} 00:00:00 at priority {desc} (expected? True): {{2019_05_{day}_{day_of_year}/avhrr-only-v2.201905{day}{prio}.nc: avhrr-only-v2.201905{day}{prio}.nc}}>'
+                    expected = f'<Example Downloader for Testing for 2019-05-{day} at priority {desc} (expected? True): {{2019_05_{day}_{day_of_year}/avhrr-only-v2.201905{day}{prio}.nc: avhrr-only-v2.201905{day}{prio}.nc}}>'
                     self.assertEqual(repr(timesteps[timestep][idx]),expected)
                     idx += 1
 
-- 
GitLab