swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f0108607860>
@pytest.fixture
def swh_origins(swh_storage):
origins = gen_origins(n=100)
> swh_storage.origin_add(origins)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/conftest.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/storage/validate.py:142: in origin_add
return self.storage.origin_add([dict_converter(Origin, o) for o in origins])
.tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:770: in origin_add
for d in [self.origin_get([origin.to_dict() for origin in origins])]
.tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:771: in <listcomp>
if d is not None
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'swh.model.model.Origin'>
d = [None, None, None, None, None, None, ...]
@classmethod
def from_dict(cls, d):
"""Takes a dictionary representing a tree of SWH objects, and
recursively builds the corresponding objects."""
> return cls(**d)
E TypeError: type object argument after ** must be a mapping, not list
.tox/py3/lib/python3.7/site-packages/swh/model/model.py:73: TypeError
TEST RESULT
TEST RESULT
- Run At
- Jun 22 2020, 3:24 PM