Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696843
D3548.id12512.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
D3548.id12512.diff
View Options
diff --git a/swh/loader/package/nixguix/tests/test_nixguix.py b/swh/loader/package/nixguix/tests/test_nixguix.py
--- a/swh/loader/package/nixguix/tests/test_nixguix.py
+++ b/swh/loader/package/nixguix/tests/test_nixguix.py
@@ -59,6 +59,15 @@
(TargetType.REVISION, b"evaluation")
],
):
+ """The `evaluation` branch is allowed to be unresolvable as it's possible at current
+ nixguix visit time, it was not visited yet (the git loader is in charge of its visit
+ for now).
+
+ For more details, check the swh.loader.package.nixguix.NixGuixLoader.extra_branches
+ docstring.
+
+ """
+
check_snapshot_full(snapshot, storage, allowed_empty)
assert isinstance(snapshot, Snapshot)
@@ -66,7 +75,7 @@
revision_ids = []
for name, branch in snapshot.branches.items():
if name == b"evaluation":
- continue # skipping that particular branch
+ continue # skipping that particular branch (cf. docstring above)
if branch.target_type == TargetType.REVISION:
revision_ids.append(branch.target)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 17, 9:49 PM (8 h, 23 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227498
Attached To
D3548: test_nixguix: Simplify the nixguix specific check_snapshot function
Event Timeline
Log In to Comment