diff --git a/debian/control b/debian/control --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ python3-setuptools, python3-swh.core (>= 0.0.44), python3-swh.journal (>= 0.0.2), - python3-swh.model (>= 0.0.15), + python3-swh.model (>= 0.0.27), python3-swh.objstorage (>= 0.0.17), python3-swh.scheduler (>= 0.0.32), python3-swh.storage (>= 0.0.102), diff --git a/requirements-swh.txt b/requirements-swh.txt --- a/requirements-swh.txt +++ b/requirements-swh.txt @@ -1,6 +1,6 @@ swh.core >= 0.0.44 swh.journal >= 0.0.2 -swh.model >= 0.0.15 +swh.model >= 0.0.27 swh.objstorage >= 0.0.17 swh.scheduler >= 0.0.32 swh.storage >= 0.0.102 diff --git a/swh/archiver/tests/test_checker.py b/swh/archiver/tests/test_checker.py --- a/swh/archiver/tests/test_checker.py +++ b/swh/archiver/tests/test_checker.py @@ -87,7 +87,9 @@ self.assertFalse(self._is_missing(obj_id)) def test_check_missing_content(self): - obj_id = hashutil.hash_data(b'check_missing_content')['sha1'] + hashes = hashutil.MultiHash.from_data( + b'check_missing_content', hash_names=['sha1']).digest() + obj_id = hashes['sha1'] self.assertFalse(self._is_corrupted(obj_id)) self.assertTrue(self._is_missing(obj_id))