self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f52505422e8>
swh_storage = <RemoteStorage url=mock://example.com/>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f5250557d68>
def test_content_add_twice(self, swh_storage, sample_data):
cont, cont2 = sample_data.contents[:2]
actual_result = swh_storage.content_add([cont])
assert actual_result == {
"content:add": 1,
"content:add:bytes": cont.length,
}
assert len(swh_storage.journal_writer.journal.objects) == 1
actual_result = swh_storage.content_add([cont, cont2])
> assert actual_result == {
"content:add": 1,
"content:add:bytes": cont2.length,
}
E AssertionError: assert {'content:add...add:bytes': 5} == {'content:add...add:bytes': 5}
E Omitting 1 identical items, use -vv to show
E Differing items:
E {'content:add': 2} != {'content:add': 1}
E Full diff:
E - {'content:add': 1, 'content:add:bytes': 5}
E ? ^
E + {'content:add': 2, 'content:add:bytes': 5}...
E
E ...Full output truncated (2 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:261: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 29 2021, 11:01 AM