@pytest.mark.skipif(
"blake2b512" not in hashlib.algorithms_available, reason="blake2b512 not built-in"
)
@pytest.mark.skipif(
"blake2b" not in hashlib.algorithms_available, reason="blake2b not built-in"
)
def test_new_hash_blake2b_pyblake2():
> with patch_blake2("pyblake2.blake2b") as mock_blake2b:
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_hashutil.py:263:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.7/contextlib.py:112: in __enter__
return next(self.gen)
.tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_hashutil.py:22: in patch_blake2
with patch(function_name) as mock:
/usr/lib/python3.7/unittest/mock.py:1252: in __enter__
self.target = self.getter()
/usr/lib/python3.7/unittest/mock.py:1422: in <lambda>
getter = lambda: _importer(target)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
target = 'pyblake2'
def _importer(target):
components = target.split('.')
import_path = components.pop(0)
> thing = __import__(import_path)
E ModuleNotFoundError: No module named 'pyblake2'
/usr/lib/python3.7/unittest/mock.py:1105: ModuleNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Dec 6 2021, 4:25 PM