Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066636
D4812.id17053.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
788 B
Subscribers
None
D4812.id17053.diff
View Options
diff --git a/swh/web/tests/common/test_identifiers.py b/swh/web/tests/common/test_identifiers.py
--- a/swh/web/tests/common/test_identifiers.py
+++ b/swh/web/tests/common/test_identifiers.py
@@ -54,12 +54,13 @@
assert gen_swhid(swh_object_type, sha1_git) == expected_swhid
assert (
- gen_swhid(swh_object_type, sha1_git, metadata={"foo": "bar"})
- == expected_swhid + ";foo=bar"
+ gen_swhid(swh_object_type, sha1_git, metadata={"origin": "test"})
+ == expected_swhid + ";origin=test"
)
assert (
- gen_swhid(swh_object_type, sha1_git, metadata={"foo": None}) == expected_swhid
+ gen_swhid(swh_object_type, sha1_git, metadata={"origin": None})
+ == expected_swhid
)
with pytest.raises(BadInputExc) as e:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 4:55 PM (18 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222990
Attached To
D4812: tests: Fix test_gen_swhid after swh-model update
Event Timeline
Log In to Comment