Page MenuHomeSoftware Heritage

D3444.id12196.diff
No OneTemporary

D3444.id12196.diff

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

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

Event Timeline