Skip to content

Commit

Permalink
download clobber test no longer needed with automatic resume
Browse files Browse the repository at this point in the history
  • Loading branch information
jake authored and jake committed Mar 25, 2024
1 parent cea3600 commit fe09ab0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/test_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit fe09ab0

Please sign in to comment.