self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f8938212cf8>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f8938216588>
def test_origin_add(self, swh_storage):
origin0 = swh_storage.origin_get([data.origin])[0]
assert origin0 is None
> stats = swh_storage.origin_add([data.origin, data.origin2])
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1317:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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:769: in origin_add
known_origins = self.origin_get(origins)
.tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:692: in origin_get
if any("id" in origin for origin in origins):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.0 = <list_iterator object at 0x7f89381b5278>
> 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:692: TypeError
TEST RESULT
TEST RESULT
- Run At
- Jun 22 2020, 11:52 AM