self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f5b29f39c18>
swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7f5b29f374e0>
mocker = <pytest_mock.plugin.MockFixture object at 0x7f5b28649be0>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f5b2e64afd0>
def test_content_add_murmur3_collision(self, swh_storage, mocker, sample_data):
"""The Murmur3 token is used as link from index tables to the main
table; and non-matching contents with colliding murmur3-hash
are filtered-out when reading the main table.
This test checks the content methods do filter out these collision.
"""
called = 0
> cont, cont2 = sample_data["content"][:2]
E TypeError: 'StorageData' object is not subscriptable
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py:196: TypeError
TEST RESULT
TEST RESULT
- Run At
- Jul 22 2020, 9:22 AM