self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f6247c4f278>
swh_storage = <RemoteStorage url=mock://example.com/>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f62483e0048>
def test_origin_add_twice_at_once(self, swh_storage, sample_data):
origin, origin2 = sample_data.origins[:2]
add1 = swh_storage.origin_add([origin, origin2, origin, origin2])
assert set(swh_storage.journal_writer.journal.objects) == set(
[("origin", origin), ("origin", origin2),]
)
> assert add1 == {"origin:add": 2}
E AssertionError: assert {'origin:add': 4} == {'origin:add': 2}
E Differing items:
E {'origin:add': 4} != {'origin:add': 2}
E Full diff:
E - {'origin:add': 2}
E ? ^
E + {'origin:add': 4}
E ? ^
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:1418: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 29 2021, 11:06 AM