Page MenuHomeSoftware Heritage

D4500.diff
No OneTemporary

D4500.diff

diff --git a/swh/deposit/tests/api/test_collection_post_atom.py b/swh/deposit/tests/api/test_collection_post_atom.py
--- a/swh/deposit/tests/api/test_collection_post_atom.py
+++ b/swh/deposit/tests/api/test_collection_post_atom.py
@@ -297,11 +297,16 @@
"utf-8"
) # noqa
- update_uri = response._headers["location"][1]
+ for link in response_content["link"]:
+ if link["@rel"] == "http://purl.org/net/sword/terms/add":
+ se_iri = link["@href"]
+ break
+ else:
+ assert False, f"missing SE-IRI from {response_content['link']}"
# when updating the first deposit post
response = authenticated_client.post(
- update_uri,
+ se_iri,
content_type="application/atom+xml;type=entry",
data=atom_entry_data,
HTTP_IN_PROGRESS="False",

File Metadata

Mime Type
text/plain
Expires
Jul 3 2025, 7:50 AM (10 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227323

Event Timeline