Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9346100
D4698.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
964 B
Subscribers
None
D4698.diff
View Options
diff --git a/swh/storage/backfill.py b/swh/storage/backfill.py
--- a/swh/storage/backfill.py
+++ b/swh/storage/backfill.py
@@ -579,7 +579,7 @@
raise ValueError(
"Object type %s is not supported. "
"The only possible values are %s"
- % (object_type, ", ".join(COLUMNS.keys()))
+ % (object_type, ", ".join(sorted(COLUMNS.keys())))
)
if object_type in ["origin", "origin_visit", "origin_visit_status"]:
diff --git a/swh/storage/tests/test_backfill.py b/swh/storage/tests/test_backfill.py
--- a/swh/storage/tests/test_backfill.py
+++ b/swh/storage/tests/test_backfill.py
@@ -59,7 +59,7 @@
error = (
"Object type unknown-object-type is not supported. "
- "The only possible values are %s" % (", ".join(PARTITION_KEY))
+ "The only possible values are %s" % (", ".join(sorted(PARTITION_KEY)))
)
assert e.value.args[0] == error
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:43 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3224598
Attached To
D4698: Add support for ExtID in the storage
Event Timeline
Log In to Comment