Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163682
D3444.id12196.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D3444.id12196.diff
View Options
diff --git a/swh/loader/tests/__init__.py b/swh/loader/tests/__init__.py
--- a/swh/loader/tests/__init__.py
+++ b/swh/loader/tests/__init__.py
@@ -116,20 +116,7 @@
expected_branches = expected_snapshot["branches"]
snap = storage.snapshot_get(hash_to_bytes(expected_snapshot_id))
if snap is None:
- # display known snapshots instead if possible
- if hasattr(storage, "_snapshots"): # in-mem storage
- from pprint import pprint
-
- for snap_id, (_snap, _) in storage._snapshots.items():
- snapd = _snap.to_dict()
- snapd["id"] = hash_to_hex(snapd["id"])
- branches = {
- branch.decode("utf-8"): decode_target(target)
- for branch, target in snapd["branches"].items()
- }
- snapd["branches"] = branches
- pprint(snapd)
- raise AssertionError("Snapshot is not found")
+ raise AssertionError("Snapshot {expected_snapshot_id} is not found")
branches = {
branch.decode("utf-8"): decode_target(target)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 1:02 PM (1 w, 12 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3223679
Attached To
D3444: loaders.tests: Simplify and add coverage to check-snapshot
Event Timeline
Log In to Comment