Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-full.lib.python3.7.site-packages.swh.model.tests.test_hypothesis_strategies::test_model_to_dicts
Failed

TEST RESULT

Run At
Dec 6 2021, 4:09 PM
Details
@given(objects()) > def test_model_to_dicts(obj_type_and_obj): .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_hypothesis_strategies.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3-full/lib/python3.7/site-packages/swh/model/model.py:807: in from_dict DirectoryEntry.from_dict(entry) for entry in d.pop("entries") .tox/py3-full/lib/python3.7/site-packages/swh/model/model.py:807: in <genexpr> DirectoryEntry.from_dict(entry) for entry in d.pop("entries") .tox/py3-full/lib/python3.7/site-packages/swh/model/model.py:178: in from_dict return cls(**d) <attrs generated init swh.model.model.DirectoryEntry>:8: in __init__ __attr_validator_name(self, __attr_name, self.name) .tox/py3-full/lib/python3.7/site-packages/attr/_make.py:2975: in __call__ v(inst, attr, value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = DirectoryEntry(name=b'/', type='file', target=hash_to_bytes('0000000000000000000000000000000000000000'), perms=0o100644) attribute = Attribute(name='name', default=NOTHING, validator=_AndValidator(_validators=(<function type_validator.<locals>.validat...True, metadata=mappingproxy({}), type=<class 'bytes'>, converter=None, kw_only=False, inherited=False, on_setattr=None) value = b'/' @name.validator def check_name(self, attribute, value): if b"/" in value: > raise ValueError("{value!r} is not a valid directory entry name.") E ValueError: {value!r} is not a valid directory entry name. .tox/py3-full/lib/python3.7/site-packages/swh/model/model.py:778: ValueError