@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:480: in from_dict
**d,
<attrs generated init swh.model.model.Revision>:27: in __init__
__attr_validator_extra_headers(self, __attr_extra_headers, self.extra_headers)
.tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:63: in _validator
_validate_elements(attribute, field, attribute.type)
.tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:89: in _validate_elements
_handle_tuple(attribute, value, expected_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
attribute = Attribute(name='extra_headers', default=(), validator=<function type_validator.<locals>._validator at 0x7f62aa1e9ea0>,...ta=mappingproxy({}), type=<class 'tuple'>, converter=<function tuplify_extra_headers at 0x7f62a8bc6d90>, kw_only=False)
container = (), expected_type = <class 'tuple'>
def _handle_tuple(attribute, container, expected_type):
> tuple_types = expected_type.__args__ # type: ignore
E AttributeError: type object 'tuple' has no attribute '__args__'
.tox/py3/lib/python3.7/site-packages/attrs_strict/_type_validation.py:178: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Jul 1 2020, 5:40 PM