Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jun 22 2020, 3:00 PM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7fe9a3cb0668> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fea38257208> def test_origin_metadata_get(self, swh_storage): authority = data.metadata_authority fetcher = data.metadata_fetcher authority2 = data.metadata_authority2 fetcher2 = data.metadata_fetcher2 origin_url1 = data.origin["url"] origin_url2 = data.origin2["url"] > assert swh_storage.origin_add([data.origin, data.origin2]) == {"origin:add": 2} .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3312: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/validate.py:144: 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:771: 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:772: in <listcomp> if d is not None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = <class 'swh.model.model.Origin'>, d = [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