Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9336979
D4500.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
838 B
Subscribers
None
D4500.diff
View Options
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
Details
Attached
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
Attached To
D4500: remove assumption that Edit-IRI and SE-IRI are the same from test_post_deposit_atom_entry_multiple_steps.
Event Timeline
Log In to Comment