Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
May 25 2020, 1:46 PM
Details
@given(objects(blacklist_types=("origin_visit", "directory"))) > def test_generation_blacklist(obj_type_and_obj): .tox/py3/lib/python3.7/site-packages/swh/model/tests/test_hypothesis_strategies.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/model/model.py:448: in from_dict **d, <attrs generated init swh.model.model.Revision>:24: in __init__ __attr_validator_parents(self, __attr_parents, self.parents) .tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:34: in _validator _validate_elements(attribute, field, attribute.type) .tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:68: in _validate_elements _handle_tuple(attribute, value, expected_type) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attribute = Attribute(name='parents', default=(), validator=<function type_validator.<locals>._validator at 0x7f718e044ae8>, repr=...er=True, hash=None, init=True, metadata=mappingproxy({}), type=typing.Tuple[bytes, ...], converter=None, kw_only=False) container = (), expected_type = typing.Tuple[bytes, ...] def _handle_tuple(attribute, container, expected_type): tuple_types = expected_type.__args__ if len(container) != len(tuple_types): > raise TupleError(container, attribute.type, tuple_types) E attrs_strict._error.TupleError: Element () has less elements than types specified in typing.Tuple[bytes, ...]. Expected 2 received 0 .tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:100: TupleError