Skip to content

Commit aec7ccc

Browse files
committed
avoid http 429 from zenodo
1 parent f1c10cc commit aec7ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_write.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,15 +468,15 @@ def test_add_tree(test_data_dir, tmpdir):
468468

469469
def test_http_header(tmpdir):
470470
crate = ROCrate()
471-
url = "https://zenodo.org/records/10782431/files/lysozyme_datasets.zip"
471+
url = "https://ftp.mozilla.org/pub/js/js-1.60.tar.gz"
472472
file_ = crate.add_file(url, validate_url=True)
473473
assert file_.id == url
474474
out_path = tmpdir / 'ro_crate_out'
475475
crate.write(out_path)
476476
out_crate = ROCrate(out_path)
477477
out_file = out_crate.dereference(url)
478478
props = out_file.properties()
479-
assert props.get("encodingFormat") == "application/octet-stream"
479+
assert props.get("encodingFormat") == "application/x-tar"
480480
assert "sdDatePublished" in props
481481
with requests.head(url) as response:
482482
assert props["sdDatePublished"] == response.headers.get("last-modified")

0 commit comments

Comments
 (0)