Page MenuHomeSoftware Heritage

D8192.id29568.diff
No OneTemporary

D8192.id29568.diff

diff --git a/swh/storage/tests/storage_tests.py b/swh/storage/tests/storage_tests.py
--- a/swh/storage/tests/storage_tests.py
+++ b/swh/storage/tests/storage_tests.py
@@ -778,7 +778,7 @@
swh_storage.directory_add(directories)
for directory in directories:
- assert directory == Directory(
+ actual_directory = Directory(
id=directory.id,
entries=tuple(
stream_results(swh_storage.directory_get_entries, directory.id)
@@ -787,6 +787,12 @@
directory.id
],
)
+ if directory.raw_manifest is None:
+ assert directory == actual_directory
+ else:
+ assert directory.raw_manifest == actual_directory.raw_manifest
+ # we can't compare the other fields, because they become non-intrinsic,
+ # so they may clash between hypothesis runs
def test_directory_add_twice(self, swh_storage, sample_data):
directory = sample_data.directories[1]

File Metadata

Mime Type
text/plain
Expires
Nov 5 2024, 5:56 PM (11 w, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225663

Event Timeline