From fe09ab05d096d234ba1b692e6dd30d2307ac41b4 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 25 Mar 2024 14:35:32 -0700 Subject: [PATCH] download clobber test no longer needed with automatic resume --- tests/test_item.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/test_item.py b/tests/test_item.py index ee4f2b80..2817ce98 100644 --- a/tests/test_item.py +++ b/tests/test_item.py @@ -188,19 +188,6 @@ def test_download_ignore_existing(tmpdir, nasa_item): assert fh.read() == 'test content' -def test_download_clobber(tmpdir, nasa_item): - # TODO: how can we test clobber with the new retry flow? - tmpdir.chdir() - with IaRequestsMock() as rsps: - rsps.add(responses.GET, DOWNLOAD_URL_RE, body='test content') - nasa_item.download(files='nasa_meta.xml') - - rsps.reset() - rsps.add(responses.GET, DOWNLOAD_URL_RE, body='new test content') - nasa_item.download(files='nasa_meta.xml') - assert load_file('nasa/nasa_meta.xml') == 'new test content' - - def test_download_checksum(tmpdir, caplog): tmpdir.chdir()