Skip to content
Snippets Groups Projects

test_directory: Fix failures after nar extid version bump

Merged Antoine Lambert requested to merge anlambert/swh-loader-git:test-directory-fixes into master
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
@@ -198,7 +198,10 @@ def test_git_loader_directory(swh_storage, datadir, tmp_path, reference):
# Ensure the extids got stored as well
extids = fetch_extids_from_checksums(
loader.storage, checksum_layout="nar", checksums=checksums
loader.storage,
checksum_layout="nar",
checksums=checksums,
extid_version=loader.extid_version,
)
assert len(extids) == len(checksums)
@@ -240,7 +243,10 @@ def test_loader_git_directory_hash_mismatch(swh_storage, datadir, tmp_path):
# Ensure no extids got stored
extids = fetch_extids_from_checksums(
loader.storage, checksum_layout="nar", checksums=faulty_checksums
loader.storage,
checksum_layout="nar",
checksums=faulty_checksums,
extid_version=loader.extid_version,
)
assert len(extids) == 0
Loading