From f92e3cf34bbbdc38c6ee9d7f1d0fde75685c22d8 Mon Sep 17 00:00:00 2001
From: Alan De Smet <alan.desmet@ssec.wisc.edu>
Date: Thu, 2 Sep 2021 18:46:47 +0000
Subject: [PATCH] Fix DownloadFunctionsTests/test_download_all_timeout

Individual downloads need individual destinations. I don't know why it
was working before. I'm not sure why it wasn't working now.

It's still broken, but for a different reason! :-)
---
 csppfetch/test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csppfetch/test.py b/csppfetch/test.py
index 02949f4..9054baf 100755
--- a/csppfetch/test.py
+++ b/csppfetch/test.py
@@ -404,7 +404,7 @@ class DownloadFunctionsTests(DTestCase):
     def test_download_all_timeout(self):
         with TemporaryDirectory() as dir:
             stats = csppfetch.DownloadStatistics()
-            url_to_dst = { f"http://geodb.ssec.wisc.edu/ancillary/2019_05_27_147/gfs.19052700_F{f:03d}.hdf" : dir+"/f" for f in range(3,22,3) }
+            url_to_dst = { f"http://geodb.ssec.wisc.edu/ancillary/2019_05_27_147/gfs.19052700_F{f:03d}.hdf" : dir+f"/f{f}" for f in range(3,22,3) }
 
             with self.assertRaises(csppfetch.timelimit.OutOfTime):
                 csppfetch.download_all(url_to_dst, stats, True, 1)
-- 
GitLab