Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_cassandra.TestCassandraStorage::test_revision_log
Failed

TEST RESULT

Run At
Jun 4 2020, 10:56 AM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f1af441fc88> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f1b346abba8> def test_revision_log(self, swh_storage): # given # data.revision4 -is-child-of-> data.revision3 swh_storage.revision_add([data.revision3, data.revision4]) # when > actual_results = list(swh_storage.revision_log([data.revision4["id"]])) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1031: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/validate.py:96: in revision_log for rev_dict in self.storage.revision_log(revisions, limit): .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:504: in revision_log yield from self._get_parent_revs(revisions, seen, limit, False) .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:498: in _get_parent_revs rev = revision_from_db(row, parents=parents) .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/converters.py:51: in revision_from_db **revision, <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:63: in _validator _validate_elements(attribute, field, attribute.type) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attribute = Attribute(name='parents', default=(), validator=<function type_validator.<locals>._validator at 0x7f1b7db682f0>, repr=...er=True, hash=None, init=True, metadata=mappingproxy({}), type=typing.Tuple[bytes, ...], converter=None, kw_only=False) value = [b'p&\xb7\xc1\xa2\xafVR\x1e\x95\x1c\x01\xed \xf2U\xfa\x05B8'] expected_type = typing.Tuple[bytes, ...] def _validate_elements(attribute, value, expected_type): if expected_type is None: return base_type = _get_base_type(expected_type) if base_type == typing.Any: return if base_type != typing.Union and not isinstance( # type: ignore value, base_type ): > raise AttributeTypeError(value, attribute) E attrs_strict._error.AttributeTypeError: parents must be typing.Tuple[bytes, ...] (got [b'p&\xb7\xc1\xa2\xafVR\x1e\x95\x1c\x01\xed \xf2U\xfa\x05B8'] that is a <class 'list'>) .tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:80: AttributeTypeError