Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jun 22 2020, 11:45 AM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f9f00727668> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f9ef871a518> def test_origin_metadata_add_dict(self, swh_storage): origin = data.origin fetcher = data.metadata_fetcher authority = data.metadata_authority > assert swh_storage.origin_add([origin]) == {"origin:add": 1} .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3288: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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:768: in origin_add known_origins = self.origin_get(origins) .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:691: in origin_get if any("id" in origin for origin in origins): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .0 = <list_iterator object at 0x7f9ef85e3ba8> > if any("id" in origin for origin in origins): E TypeError: argument of type 'Origin' is not iterable .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:691: TypeError