Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Dec 8 2021, 12:28 PM
Details
@given(strategies.objects()) > def test_repr(objtype_and_obj): """Checks every model object has a working repr(), and that it can be eval()uated .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_model.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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