Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
May 25 2020, 1:46 PM
Details
@given(objects()) > def test_model_to_dicts(obj_type_and_obj): .tox/py3/lib/python3.7/site-packages/swh/model/tests/test_hypothesis_strategies.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/model/model.py:487: in from_dict **d, <attrs generated init swh.model.model.Directory>:6: in __init__ __attr_validator_entries(self, __attr_entries, self.entries) .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='entries', default=NOTHING, validator=<function type_validator.<locals>._validator at 0x7f718e044730>, ...True, metadata=mappingproxy({}), type=typing.Tuple[swh.model.model.DirectoryEntry, ...], converter=None, kw_only=False) container = () expected_type = typing.Tuple[swh.model.model.DirectoryEntry, ...] 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[swh.model.model.DirectoryEntry, ...]. Expected 2 received 0 .tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:100: TupleError