self = <swh.storage.tests.test_cassandra.TestCassandraStorageGeneratedData object at 0x7f9e56432ac8>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f9e4a220780>
@settings(suppress_health_check=[HealthCheck.too_slow])
> @given(strategies.lists(objects(), max_size=2))
def test_add_arbitrary(self, swh_storage, objects):
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3704:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3726: in test_add_arbitrary
method([obj])
.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 0x7f9e489376d8>
> 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
TEST RESULT
TEST RESULT
- Run At
- Jun 22 2020, 11:45 AM